Skip to content

Commit

Permalink
Changed fill value back to -1 from -999.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfillmore committed Oct 23, 2023
1 parent 9de4ea4 commit 5909ec8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions melodies_monet/util/write_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ def compress_variable(da):
Description of returned object.
"""
da = da.fillna(-999)
da = da.fillna(-1)
mn, mx = get_min_max(da)
scale_factor, offset = compute_scale_and_offset(mn, mx, 32, dtype=da.dtype)
da.data = pack_value(da, scale_factor, offset, dtype=np.int32).data
da.attrs['scale_factor'] = scale_factor.values
da.attrs['add_offset'] = offset.values
da.attrs['_FillValue'] = -999
da.attrs['missing_value'] = -999
da.attrs['_FillValue'] = -1
da.attrs['missing_value'] = -1
return da

def write_pkl(obj, output_name):
Expand Down

0 comments on commit 5909ec8

Please sign in to comment.