I am trying to obtain one cloud free image from an FOI for every last week in a month. But I am doing this manually at the moment using the following request in request builder. I am getting images with no data almost all the time. Until I use a simple mosaic for every 1-2 months.
//VERSION=3
function setup() {
return {
input: [{
bands: ["B01", "B02", "B03", "B04", "B08", "B05", "B06", "B07", "B8A", "B11", "B12"],
units: "DN"
}],
output: {
bands: 12,
sampleType: "INT16"
},
mosaicking: "ORBIT"
};
}
function evaluatePixel(sample) {
return [sample.B01,
sample.B02,
sample.B03,
sample.B04,
sample.B05,
sample.B06,
sample.B07,
sample.B08,
sample.B8A,
sample.B1972,
sample.B12];
}
I need help to troubleshoot what is the actual problem. Thanks