Skip to main content

In the script window there used to be written:

return [B01*2.5,B02*2.5,B03*25]


But newly the default is now:

//VERSION=3

function setup() {

return {

input: [“B01”,“B02”,“B03”, “dataMask”],

output: { bands: 4 }

};

}


function evaluatePixel(sample) {

return /2.5 * sample.B01,2.5 * sample.B02,2.5 * sample.B03, sample.dataMask ];

}


I find now difference in the displayed images. Can you please explain me what is about this dataMask and eventually where to find it (cloud mask?)

Thanks

Hello
you are correct that visually there is no difference between the two scripts except the by you mentioned dataMask. The dataMask deals with the visualization of pixels that have no data values. You can read more on it here. On the same page you also find some info about the cloud mask.

The upper script is the basic version, the lower one is a v3 script which offers you more possibility to modify your script. You can read more about v3 evalscripts here.


many thanks - this is helpful. The cloudmask is not perfect for low clouds but it is a very good start.


Reply