Skip to content

Commit 1b0d4b3

Browse files
authored
Update eob.js invert cloud mask
1 parent c113dbf commit 1b0d4b3

File tree

1 file changed

+2
-2
lines changed
  • analysis_ready_planetscope/ndvi

1 file changed

+2
-2
lines changed

analysis_ready_planetscope/ndvi/eob.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ function setup() {
124124
// cloud_mask = 1 => no clouds
125125
// cloud_mask = 2,3,4,5,6,7 => different classes of clouds (bright cloud, haze, ...)
126126
// cloud_mask = -999 => no data
127-
let cloudBool = sample.cloud_mask == 1 ? 1 : 0;
127+
let cloudBool = sample.cloud_mask == 1 ? 0 : 1; // cloud_mask for eobrowserStats should be 0 for no-clouds
128128

129129
return {
130130
default: visVal,
131131
index: [indexVal],
132132
eobrowserStats: [ndvi, cloudBool],
133133
dataMask: [sample.dataMask],
134134
};
135-
}
135+
}

0 commit comments

Comments
 (0)