-
Notifications
You must be signed in to change notification settings - Fork 4
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
Jupyter notebook: data loading gives error when updating dataset version #182
Comments
Hi @malmans2, Thanks, it works for the gridded version, but for the vector data I get the following error:
|
Looks like a bug in ECMWF's |
Hi @yoniv1, Unfortunately, something is not right with this dataset.
I will open an issue in Here is a MRE: import earthkit.data
dataset = "insitu-glaciers-extent"
request = {
"variable": "glacier_area",
"product_type": "vector",
}
for version in ("rgi_6_0", "rgi_7_0"):
ds = earthkit.data.from_source("cds", dataset, request | {"version": version})
try:
df = ds.to_pandas()
except Exception as exc:
print(f"{version = }: {exc!s}")
raise
else:
print(f"{version = }: OK!") |
Here is the |
Thanks, Mattia! Something to follow up then. |
By the way, when downloading the data manually it indeed looks that the .zip file contains another .zip file with in there the .shp data. There are two zip files to be unzipped. Edit: ah, but this was also the case for version 6.0 I see. |
Yes, v6 is also a zip of a zip. Something else is different in v7 and is not compatible with earthkit. Not sure if this is an issue in earthkit or in the actual data. |
Hi @yoniv1, The I suggest to share this information with the reviewer, so they can decide how to proceed. |
Hi @malmans2 Thanks for the follow-up and info. Will someone be contacted from the CDS side to fix the issue with the file naming? Yoni |
Isn't the reviewer of your task a CDS technical officer? Anyway, B-Open only provides technical support. You should get in touch with CNR if you're not sure how to proceed. |
What happened?
Hi @malmans2 ,
When updating the dataset version to 7.0 in stead of 6.0 of the glacier extent dataset, I get an error while loading in the data. Can you please check it?
The dataset:
https://cds.climate.copernicus.eu/datasets/insitu-glaciers-extent?tab=download
The notebook:
https://github.com/ecmwf-projects/c3s2-eqc-quality-assessment/blob/98e722072e4c67c82b48fa34db9e48cf7b3f796b/Satellite_ECVs/Cryosphere/satellite_insitu-glaciers-extent_consistency-assessment_q02.ipynb
Thanks
The original code which is working for version 6.0:
The error when changing to version 7.0:
Minimal Complete Verifiable Example
Relevant log output
Anything else we need to know?
No response
Environment
The text was updated successfully, but these errors were encountered: