You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By setting ds.lat.encoding['_FillValue'] = None before outputting to NetCDF, the lat:_FillValue = NaN ; can be removed. This is happening with the NetCDF files we are generating with roocs. CF conventions say that coordinate variables cannot have missing values, so we don't want this added _FillValue in this case.
The text was updated successfully, but these errors were encountered:
Description
xarray adds
_FillValue
when outputting to NetCDF. See this example forlat
Before working with xarray:
After working with xarray:
By setting
ds.lat.encoding['_FillValue'] = None
before outputting to NetCDF, thelat:_FillValue = NaN ;
can be removed. This is happening with the NetCDF files we are generating with roocs. CF conventions say that coordinate variables cannot have missing values, so we don't want this added _FillValue in this case.The text was updated successfully, but these errors were encountered: