Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Added mask_and_scale=True argument to mask out NaN values from dataset
  • Loading branch information
daminton committed Sep 15, 2021
1 parent 1b708a5 commit e6224e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/swiftest/swiftest/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def swiftest2xr(param):

elif ((param['OUT_TYPE'] == 'NETCDF_DOUBLE') or (param['OUT_TYPE'] == 'NETCDF_FLOAT')):
print('\nCreating Dataset')
ds = xr.open_dataset(param['BIN_OUT'])
ds = xr.open_dataset(param['BIN_OUT'], mask_and_scale=True)
ds = clean_string_values(param, ds)
else:
print(f"Error encountered. OUT_TYPE {param['OUT_TYPE']} not recognized.")
Expand Down

0 comments on commit e6224e7

Please sign in to comment.