Skip to content

Commit

Permalink
Allow NaNs in datasets (#326)
Browse files Browse the repository at this point in the history
* Allow NaNs in datasets

* Remove round()
  • Loading branch information
devsjc authored Feb 7, 2025
1 parent a36a69b commit 485a810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def do_v15_rescaling(
dataarray -= mins
dataarray /= new_max
dataarray *= upper_bound
dataarray = dataarray.round().clip(min=0, max=upper_bound).astype(np.int16)
dataarray = dataarray.clip(min=0, max=upper_bound).astype(np.float32)
return dataarray


Expand Down

0 comments on commit 485a810

Please sign in to comment.