Hi,
I’m using Sentinel API to generate GeoTIFF in true color and NDVI from a polygon. With the NDVI, the outside of the polygon is transparent, but when I try with the true color, it’s always black.
Could you help me figure out what I’m doing wrong?
NDVI//VERSION=3
function setup() {
return {
input: ["B04", "B08"],
output: {
bands: 1,
sampleType: "FLOAT32"
},
};
}
function evaluatePixel(sample) {
return [(sample.B08 - sample.B04) / (sample.B08 + sample.B04)];
}
True color//VERSION=3
function setup() {
return {
input: ["B02", "B03", "B04", "SCL"],
output: { bands: 3 }
};
}
function evaluatePixel(sample) {
return [2.5*sample.B04, 2.5*sample.B03, 2.5*sample.B02];
}
Thank you
