Skip to content
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

_FillValue type mismatch #900

Open
tiemvanderdeure opened this issue Feb 18, 2025 · 1 comment
Open

_FillValue type mismatch #900

tiemvanderdeure opened this issue Feb 18, 2025 · 1 comment

Comments

@tiemvanderdeure
Copy link
Collaborator

The "_FillValue" field and the missingval are identical when a Raster is read, but unlike missingval it is not updated. So something like:

using Rasters, NCDatasets
filename = tempname() * ".nc"
A = Rasters.create(filename, Float32, (X(1:10),), missingval = NaN32, force = true)
write("myraster2.nc", A .+ 1.0)

Gives a ERROR: NetCDF error: NetCDF: Not a valid data type or _FillValue type mismatch (NetCDF error code: -45)

Could we just ignore it whenever raw = false?

@rafaqz
Copy link
Owner

rafaqz commented Feb 18, 2025

Yeah we probably shouldn't load it into metadata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants