Skip to content

Commit 81c0c2a

Browse files
LaurenSchenk1colourmeamused
authored andcommitted
fix trailing white space warning
1 parent 32c9cd8 commit 81c0c2a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/wit_ls9.conflux.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ def transform(inputs: xr.Dataset) -> xr.Dataset:
6868
output_rast["npv"] = npv
6969

7070
# Mask noncontiguous data, low solar incidence angle, cloud, and water out of the wet category
71-
# by disabling those flags
71+
# by disabling those flags
7272
mask = (wo_ds.water & 0b01100011) == 0
7373
# not apply poly_raster cause we will do it before summarise
7474

7575
open_water = wo_ds.water & (1 << 7) > 0
7676

77-
# Thresholding
77+
# Thresholding
7878
# set wet pixels where not masked and above threshold of -350
7979
wet = tcw.where(mask) > -350
8080

@@ -100,7 +100,7 @@ def transform(inputs: xr.Dataset) -> xr.Dataset:
100100

101101
def summarise(inputs: xr.Dataset) -> xr.Dataset:
102102

103-
# calculate percentage missing
103+
# calculate percentage missing
104104
pc_missing = 1 - (np.nansum(inputs.mask.values) / len(inputs.mask.values))
105105
# inputs = inputs.where(pc_missing < 0.1)
106106

0 commit comments

Comments
 (0)