Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chlorophyll benchmark file load error #1

Open
jabowery opened this issue Sep 14, 2023 · 1 comment
Open

Chlorophyll benchmark file load error #1

jabowery opened this issue Sep 14, 2023 · 1 comment

Comments

@jabowery
Copy link

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)
@JoanaR
Copy link
Owner

JoanaR commented Sep 16, 2023

Hi,

Thank you very much for raising this issue. You are right that the file "Reference target satellite Chl over 1998-2015" seems indeed to be corrupted when downloaded from Seanoe. I will contact the platform to solve this problem.
However, you can in the meantime download the same reference target satellite data on this link : https://e1.pcloud.link/publink/show?code=XZ9rfmZMAsMwhIJbw8MKJa7kUBAVFuikjfk
or the corresponding transformed and normalized data here : https://e.pcloud.link/publink/show?code=kZ5TyuZeuTIPNKWtsS02f60baCweJlIfwVy ("ln_Chl_ref_norm_1998_2015.npy").

Hope this solves your problem,
Regards,
Joana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants