Skip to content

Commit c3729c0

Browse files
corrected band error in simple panchromatic mosaic script
1 parent 6229fac commit c3729c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentinel-2/simple_panchromatic/script_mosaics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
function setup() {
77
return {
8-
input: ["B01", "B02", "B03", "B08", "dataMask"],
8+
input: ["B02", "B03", "B04", "B08", "dataMask"],
99
output: { bands: 4 }
1010
};
1111
}
@@ -14,7 +14,7 @@ function setup() {
1414

1515
function evaluatePixel(sample) {
1616
// Calculate the mean of the bands
17-
let pan = (sample.B01 + sample.B02 + sample.B03 + sample.B08) / 4;
17+
let pan = (sample.B02 + sample.B03 + sample.B04 + sample.B08) / 4;
1818

1919
return [gain * pan, gain * pan, gain * pan, sample.dataMask];
2020
}

0 commit comments

Comments
 (0)