-
Notifications
You must be signed in to change notification settings - Fork 80
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
Process/Decode Chunk Issue #419
Comments
The dtype says that this is a 1-char per element field, and there are 8 characters in each entry. The chunk shape is 1,64 - so zarr is right to error. Actually, the values look like filenames, no? base64 would only require more characters for the same output, so I don't think that's it (although the fill value is suggestive). |
I think this set of NetCDFs just has an extra string field for the date (which is unnecessary but still something that the data provider included). The actual files look like There are 8 characters in each entry which are each considered their own chunk. Each chunk is decoded in zarr Array._process_chunk which may be unnecessary since these chunks are not base64 encoded, should this step be skipped for this dtype? |
The file might be accessible at https://data.ceda.ac.uk/badc/ukcp18/data/land-rcm/uk/12km/rcp85/01/huss/day/v20190731/huss_rcp85_land-rcm_uk_12km_01_day_19801201-19901130.nc if you want to try converting this file? |
I got the file, but I won't have time to look until at least tomorrow. |
No problem, this isn't particularly time-sensitive for me at the moment. Thanks for taking the time! |
I have some NetCDF UKCP data with a variable called "yyyymmdd" that is stored in the Kerchunk file like so:
When decoded I get the error message:
cannot reshape array of size 8 into shape (1,64)
Which I think is because the part of Zarr that decodes this is expecting a base64 encoded array rather than a string of 8 characters? That or the dimension/chunk/shape is being interpreted incorrectly. How should an array like this be interpreted within Zarr and decoded into an array of 1 by 64 when each chunk is an 8 character string?
The text was updated successfully, but these errors were encountered: