-
Notifications
You must be signed in to change notification settings - Fork 24
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
Zarr from gdalwarp can not be read because of fill_value is Nothing #146
Comments
cea.zip |
This error is caused when there are missing chunks and no fill value is defined, which means that there is simply undefined data. I know that this does not error when you try to read the slice in zarr-python, but what you get is random data, usually just what has been in the buffer before. For Julia I would still strongly recommend to throw an error in this case, but agree that the error message can be improved. I would say this is a GDAL bug, because when no fill value is defined then all chunks need to exist for a Zarr array to be valid. |
Yes reading random data sounds bad. Could we enable setting the fill_value from inside Julia or might this also be problematic? I open a PR for the error. |
I realized working on this, that we can also build a broken Zarr file with chunks that are not there and no fill_value. Should we at least throw a warning when we create a file that has this setup? |
This closes Zarr from gdalwarp can not be read because of fill_value is Nothing JuliaIO#146
This closes Zarr from gdalwarp can not be read because of fill_value is Nothing #146
I converted a tif file using
gdalwarp -of Zarr path.tif path.zarr
This gives a .zarr file and I can open it with Zarr.jl but when I try to read the data it fails with the following error while filling the array with the fill value which is Nothing. The tif file and the converted Zarr file is attached to the issue. I am not sure, whether this is a Zarr.jl or a GDAL bug.
The text was updated successfully, but these errors were encountered: