Hi,
We access sentinel2 data via your API. We generally pull a true colour image as well as a custom made file that we call multiband which contains all sentinel2 bands. Below you can see the custom made file code:
//VERSION=3
//This script was converted from v1 to v3 using the converter API
let viz = new Identity();
function evaluatePixel(samples) {
let val = [samples.B01, samples.B02, samples.B03, samples.B04, samples.B05, samples.B06, samples.B07, samples.B08, samples.B8A, samples.B09, samples.B10, samples.B11, samples.B12];
return val.map(v => viz.process(v));
}
function setup() {
return {
input: [{
bands: [
"B01",
"B02",
"B03",
"B04",
"B05",
"B06",
"B07",
"B08",
"B8A",
"B09",
"B10",
"B11",
"B12"
]
}],
output: {
bands: 13
}
Below is a script that we use in order to pull the imagery as well as a geojson that we were pulling data for.
As you can see from the script, the start_date is march 1st and the end_date is March 19th. There are 4 images during this time period for the attached geojson (1st, 6th, 11th, 16th). When running this script 4 true colour files are downloaded but only 3 multiband files are downloaded. The 11th is missing the multiband file.
This same issue has also occurred to all other geojson files in the same area, so I am assuming that the issue must be related to one of the bands missing from that specific tile.
Is there any way to fix this and is this something that is likely to happen again in the future?
Thank you!
Peter