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

Updated fix: remove_fill_values() #88

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions daops/data_utils/attr_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import cf_xarray

from roocs_utils.xarray_utils import xarray_utils as xu

from .common_utils import handle_derive_str
Expand Down Expand Up @@ -67,6 +69,10 @@ def remove_fill_values(ds_id, ds):
if ds.coords[coord_id].dims == (coord_id,):
ds[coord_id].encoding["_FillValue"] = None

bounds = ds.cf.get_bounds(coord_id)
if bounds is not None:
bounds.encoding["_FillValue"] = None

return ds


Expand Down