We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is fairly simple, so I might easily be doing something wrong, I'm failing to attribute a fill_value to a DataArray when writing it to netcdf:
from numpy import ones from xarry import DataArray data=DataArray(ones(10),name="testvar") data.to_netcdf("testvar.nc",encoding={"testvar": {"fill_value': -1.e12}})
throws:
ValueError: unexpected encoding parameters for 'netCDF4' backend: ['fill_value']
The text was updated successfully, but these errors were encountered:
The correct key is _FillValue. This is documented here: http://xarray.pydata.org/en/stable/io.html#scaling-and-type-conversions
_FillValue
The error here could be a bit better though and tell you which encoding parameters it would accept. Any interest in contributing a fix here?
Sorry, something went wrong.
@mommebutenschoen - see #2730
No branches or pull requests
Code Sample, a copy-pastable example if possible
This is fairly simple, so I might easily be doing something wrong, I'm failing to attribute a fill_value to a DataArray when writing it to netcdf:
throws:
The text was updated successfully, but these errors were encountered: