Skip to content

Commit

Permalink
Update eob.js invert cloud mask
Browse files Browse the repository at this point in the history
  • Loading branch information
mkadunc authored Aug 7, 2024
1 parent c113dbf commit 1b0d4b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysis_ready_planetscope/ndvi/eob.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ function setup() {
// cloud_mask = 1 => no clouds
// cloud_mask = 2,3,4,5,6,7 => different classes of clouds (bright cloud, haze, ...)
// cloud_mask = -999 => no data
let cloudBool = sample.cloud_mask == 1 ? 1 : 0;
let cloudBool = sample.cloud_mask == 1 ? 0 : 1; // cloud_mask for eobrowserStats should be 0 for no-clouds

return {
default: visVal,
index: [indexVal],
eobrowserStats: [ndvi, cloudBool],
dataMask: [sample.dataMask],
};
}
}

0 comments on commit 1b0d4b3

Please sign in to comment.