We have been conducting tests with your Third-Party API and Process API to import images from Planet Scope into our Sentinel Hub account. We import multiple collections of various dates for two different polygons, but when we use the Process API to download the RGB image, the downloaded .TIFF contains a blue-filled polygon. This polygon is extracted is a farm, it seemed strange to us, so we downloaded several more, but the results are the same. To create the RGB image we used 2 evalscripts, but they all end up downloading an image with blue-filled pixels of the polygon.
This are the evalscripts we use:
//VERSION=3
//True Color
function setup() {
return {
input: ["B1", "B2", "B3", "dataMask"],
output: { bands: 4 }
};
}
function evaluatePixel(sample) {
return [sample.B3/3000,
sample.B2/3000,
sample.B1/3000,
sample.dataMask];
}
//VERSION=3
function setup() {
return {
input: [{
bands: ["B2", "B3", "B4"]
}],
output: {
bands: 3
}
};
}
function evaluatePixel(sample) {
return [sample.B04, sample.B03, sample.B02];
}
We are wondering if you could help us understand what we are doing wrong or if there is something we are missing.