Skip to content

Commit

Permalink
Adjust MOD10A2, uint8
Browse files Browse the repository at this point in the history
  • Loading branch information
quanpan302 committed Mar 4, 2020
1 parent bc131bd commit 826f048
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/IHEWAcollect/templates/USGS/MOD10A2.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ def convert_data(args):
# scale, units
# data = np.where(data < 0, np.nan, data)
data = data * data_multiplier
data = np.array(data, dtype=np.uint8)

# novalue data
data = np.where(np.isnan(data), data_ndv, data)
Expand Down

0 comments on commit 826f048

Please sign in to comment.