-
Notifications
You must be signed in to change notification settings - Fork 95
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
Unable to generate ERA5 cutout #381
Comments
I'm experiencing the same issue when attempting to create the example tutorial (https://atlite.readthedocs.io/en/master/examples/create_cutout.html)
(...) File /X/miniconda3/envs/pypsa-ties/lib/python3.12/site-packages/atlite/data.py:116, in maybe_remove_tmpdir..wrapper(*args, **kwargs) File /X/envs/pypsa-ties/lib/python3.12/site-packages/atlite/data.py:208, in cutout_prepare(cutout, features, tmpdir, overwrite, compression, show_progress, dask_kwargs, monthly_requests, concurrent_requests) ValueError: zip() argument 2 is longer than argument 1 I also tried specifically assigning chunks. Maybe it has something to do with the new API system implemented from CDS ? |
I also have this issue. lat/lon below are a ~100km box around ~39.26, -103.69.
Also arising from SolarPosition:
|
I encountered the same problem. A workaround for me was downgrading xarray to v2024.07. |
I encountered the same problem. I tried bypassing the issue on my end with no success, although I made the following observations:
I'm trying to see if the bypass by @oruhnau would work for me as well, but testing is painfully slow since the only way I've found to reliably reproduce this bug is to request sufficiently large data from CDS, and the queue takes time 😅I tried saving the ERA5 temp files to test this locally, but I didn't manage to get the error to occur this way when calculating the EDIT: It would seem that following the advice of @oruhnau also works in my case. Thanks! |
Version Checks (indicate both or one)
I have confirmed this bug exists on the lastest release of Atlite.
I have confirmed this bug exists on the current
master
branch of Atlite.Issue Description
While trying to create a simple ERA5 cutout, I get a mysterious error message from deep within xarray. Here is the full log, reproducer below:
Reproducible Example
Expected Behavior
I expect the ERA5 data to be downloaded correctly and the cutout to be generated along with with its prepared features.
Installed Versions
affine==2.4.0
atlite==0.2.14
attrs==24.2.0
beautifulsoup4==4.12.3
Bottleneck==1.4.0
cads-api-client==1.3.3
Cartopy==0.23.0
cdsapi==0.7.3
certifi==2024.8.30
cftime==1.6.4
charset-normalizer==3.3.2
click==8.1.7
click-plugins==1.1.1
cligj==0.7.2
cloudpickle==3.0.0
contourpy==1.3.0
country-converter==1.2
cycler==0.12.1
dask==2024.9.0
deprecation==2.1.0
entsoe-py==0.6.8
et-xmlfile==1.1.0
fonttools==4.53.1
fsspec==2024.9.0
geographiclib==2.0
geopandas==1.0.1
geopy==2.4.1
idna==3.10
kiwisolver==1.4.7
locket==1.0.0
matplotlib==3.9.2
multiurl==0.3.1
netCDF4==1.7.1.post2
networkx==3.3
numexpr==2.10.1
numpy==1.26.4
openpyxl==3.1.5
packaging==24.1
pandas==2.2.2
partd==1.4.2
pgeocode==0.5.0
pillow==10.4.0
powerplantmatching==0.6.0
progressbar2==4.5.0
pycountry==24.6.1
pyogrio==0.9.0
pyparsing==3.1.4
pyproj==3.6.1
pyshp==2.3.1
python-dateutil==2.9.0.post0
python-utils==3.8.2
pytz==2024.2
PyYAML==6.0.2
rasterio==1.3.11
requests==2.32.3
scipy==1.14.1
seaborn==0.13.2
setuptools==75.1.0
shapely==2.0.6
six==1.16.0
snuggs==1.4.7
soupsieve==2.6
toolz==0.12.1
tqdm==4.66.5
typing_extensions==4.12.2
tzdata==2024.1
Unidecode==1.3.8
urllib3==2.2.3
xarray==2024.9.0
xlrd==2.0.1
The text was updated successfully, but these errors were encountered: