Open Balinus opened 3 years ago
Yeah, the type of the Fill Value is Integer, while the type of the data is Float.
Should we check and autoconvert the type of fill value to the type of the array?
(notice: this is not our problem per se. It's a problem of NCDatasets.jl that doesn't provide the convenience of automatic conversion)
ah I see! I guess we could add an optional parameter to ncwrite
?
Hi! I got the same problem here. Is there are any ways to solve this?
Yeap, the solution is quite trivial. Either do a PR here and modify the function ncwrite
to automatically convert the _FillValue
argument to the element type of the data. Or, do a similar PR at NCDatasets.jl that does the same thing in the function NCDatasets.write
.
Or just do this on your end. Just convert the _FillValue
field of the metadata dictionary to be float instead of integer.
Tried to save a ClimArray containing ERA5 tasmax data and it failed due to a potential wrong
_FillValue
.I can provide the file, but it is ~750MB. I do not remember where and when I downloaded it.