The case of this tutorial mainly solves that after we process the function function, the image will lose its original properties. This time we use the sentinel-2 dataset, and the function here is to go to the cloud function.
question:
I'm new to the GEE platform and I'm doing a functional masking of a sentinel 2 image set and I keep getting an error when adding print data to see the metadata cloud overlay. I would like to know the set of images taken for the clouds. But it always shows the band image instead of the date cloud.
Please help me and confirm what I am doing wrong. thank you for your help! !
Original code:
var AOI =
/* color: #d63000 */
/* displayProperties: [
{
"type": "rectangle"
}
] */
ee.Geometry.Polygon(
[[[114.91370459315428, -3.519343796715037],
[114.91370459315428, -3.544016090274636],
[114.94391699549803, -3.544016090274636],
[114.94391699549803, -3.519343796715037]]], null, false);
/**
* Function to mask clouds using the Sentinel-2 QA band
* @param {ee.Image} image Sentinel-2 image
* @return {ee.Image} cloud masked Sentinel-2 image
*/
function maskS2clouds(image) {
var qa = image.select('QA60');
// Bits 10 and 11 are clo