-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Suggestion: Add option for default_fillvals to open_dataset #2374
Comments
This is still relevant, should the argument |
Yes I think it should go here: xarray/xarray/coding/variables.py Lines 179 to 213 in bc92331
where it will be controlled by both |
4 tasks
This was referenced Jul 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
May I suggest having a default_fillvals option to xarray.open_dataset (and xarray.open_dataarray)?
My problem:
I have netcdf data containing flagged data, that is flagged with the netcdf default fill value of 9.96...e+36. But xarray (0.10.8) only masks arrays that have an explicit fill_value set:
The problem is, that ds.var1 and ds.var2 are interpreted differently, although netCDF4 shows both as masked:
I agree, that it is a good default, to mask data, only if the fill_value attribute is set. But I think it would be useful to be able to pass default_fill values to open_dataset to enable reading data, that uses the implicit default values.
What do you think?
The text was updated successfully, but these errors were encountered: