When requesting only dataMask
in Sentinel-5P CLOUD there is a confusing error.
The script can only use one product type at once! Instead it uses: [].
Adding a data band avoids the error.
//VERSION=3
function setup() {
return {
input: [
// uncomment to avoid error:
// "CLOUD_BASE_HEIGHT",
"dataMask"
],
output: [{ id: "default", bands: 1 }],
};
}
function evaluatePixel(samples) {
return {
default: [samples.dataMask],
};
}
Is it possible to change the error to something like:
The script can't only request dataMask. Please add another input product.
Or making it possible to only request the dataMask
Emile Sonneveld