Skip to content

Commit

Permalink
Fix data masking to preserve dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
lahtinep committed Nov 11, 2024
1 parent d809f1e commit cbc872e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/readers/mersi_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _mask_data(self, data, dataset_id, attrs):
attrs["_FillValue"] = fill_value
new_fill = data.dtype.type(fill_value)
else:
new_fill = np.nan
new_fill = np.float32(np.nan)
try:
# Due to a bug in the valid_range upper limit in the 10.8(24) and 12.0(25)
# in the HDF data, this is hardcoded here.
Expand Down

0 comments on commit cbc872e

Please sign in to comment.