-
Notifications
You must be signed in to change notification settings - Fork 283
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
Loading ERA5 data with CHUNK_CONTROL
fails with TypeError
#5864
Comments
@schlunma et iris folks - have a look at me comment here ESMValGroup/ESMValCore#2375 (comment) - that data is not storage (HDF5)-chunked, in fact it is not even compatible with HDF5/h5py since it's in NETCDF3 format, so it comes as a contiguous data array of shape (12, 37, 721, 1440), if iris is looking to determine storage chunks, and there are none, then it should fall back to a default synthetic chunk, and rechunk it that way, albeit that's a slow process |
🐛 Bug Report
Loading ERA5 data in netCDF format within a
CHUNK_CONTROL.set(time=-1)
context leads to aTypeError: 'NoneType' object does not support item assignment
. Any coordinate that is present in the file (time, level, latitude, longitude) will give this error regardless of the value specified. No error is raised if coordinates are given that are not present in the file.The file can be downloaded here (select "Monthly averaged reanalysis", "Temperature", all levels, "2022", all months", "00:00", "Whole available region").
How To Reproduce
gives
Expected behaviour
No error. The file should be loaded with a chunksize of (12, ...).
Environment
The text was updated successfully, but these errors were encountered: