Might be overlooking existing documentation, but can’t find it. I’m looking for a way to use WCS request to get a spatial-temporal stack of Sentinel-2 data.
This can be in DN and uint16 to save processing units and space and time, but I can’t get it to work. Was trying with the following script:
//VERSION=3
function setup() {
return {
input: [{
bands: ["B02", "B03", "B04", "B08"], // Sentinel-2 10m bands
units: "DN" // Digital numbers)
}],
output: { // this defines the output image type
bands: 4, // nr of bands
sampleType: "UINT16" // raster format will be UINT16
},
mosaicking: "TILE"
};
}
function evaluatePixel(sample) {
return [sample.B02, sample.B03, sample.B04, sample.B08 ];
}
I read a bit about “mosaicking” option and set it to TILE to return the unflattened stack, but when I try it, I still get a 4-band image back. I don’t even know if the system is able to return what is actually a 4D result (x, y, t, bands)? In any case, could I got something like this to work? If it’s the case, but just very heavy (which it will be if the time range is long), I’ll consider the batch processing API of course once I know that it would work.
Thanks
