Skip to content

Chlorophyll benchmark file load error #1

Open
@jabowery

Description

@jabowery

The Chlorophyll benchmark "output" file at https://www.seanoe.org/data/00807/91910/ results in the following error when I try to load it:

[1] import numpy as np
[2] oarr = np.load('ln_Chl_ref_norm_1998_2015.npy')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[2], line 1
----> 1 oarr = np.load('ln_Chl_ref_norm_1998_2015.npy')

File ~/mambaforge/envs/chlorophyllCNN/lib/python3.11/site-packages/numpy/lib/npyio.py:456, in load(file, mmap_mode, allow_pickle, fix_imports, encoding, max_header_size)
    453         return format.open_memmap(file, mode=mmap_mode,
    454                                   max_header_size=max_header_size)
    455     else:
--> 456         return format.read_array(fid, allow_pickle=allow_pickle,
    457                                  pickle_kwargs=pickle_kwargs,
    458                                  max_header_size=max_header_size)
    459 else:
    460     # Try a pickle
    461     if not allow_pickle:

File ~/mambaforge/envs/chlorophyllCNN/lib/python3.11/site-packages/numpy/lib/format.py:839, in read_array(fp, allow_pickle, pickle_kwargs, max_header_size)
    837         array = array.transpose()
    838     else:
--> 839         array.shape = shape
    841 return array

ValueError: cannot reshape array of size 16264384 into shape (216,178,358,9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions