Skip to content

Commit f959ba3

Browse files
committed
rm nodata
1 parent 6d80967 commit f959ba3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

odc/stats/plugins/ls_ndvi_median.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
mask_cleanup,
1818
)
1919

20-
NODATA = -999
21-
2220
class StatsNDVI(StatsPluginInterface):
2321
"""
2422
Define a class for summarising time
@@ -97,7 +95,6 @@ def reduce(self, xx: xr.Dataset) -> xr.Dataset:
9795
Calculate NDVI and summarise time series with a median.
9896
"""
9997
# convert to float by and convert nodata to NaN
100-
# xx = xx.where(xx>1)
10198
xx = mask_invalid_data(xx)
10299

103100
ndvi = (xx['nbart_nir'] - xx['nbart_red']) / (xx['nbart_nir'] + xx['nbart_red'])

0 commit comments

Comments
 (0)