-
Notifications
You must be signed in to change notification settings - Fork 34
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
Can't write Float16 data cubes #316
Comments
NetCDF doesn't support Xarray seemed to decide it was best to make the user do that manually: But we could make the error message clearer? Another option is to convert to |
I also think that it's best for the user to convert it manually, and it can be suggested in the error message. Perhaps something like: if typeof(raster[1]) == Float16
@error "NetCDF doesn't support Float16, convert your variable Float32. |
Can't
write
a data cube which has Float16 values.ERROR: Your data is not a type that netcdf can store
While there are no issues if I convert it to Float32 and then write.
Also no issues if I convert it to Float64 and then write.
I used this netCDF file for testing. It's called
mumbai_radiance.nc
instead oftest.nc
The text was updated successfully, but these errors were encountered: