Skip to main content

Hi. When I try to get cloud cover for the pictures as in the example Percentage of cloudy pixels for selected area of interest. For all polygons, it is equal to 100% or 0%. What am I doing wrong? I use Requests Builder with body

-d ‘{

“input”: {

“bounds”: {

“bbox”: >

99.92219100354117,

13.007546735417321,

99.92293263393276,

13.008241466028025

]

},

“data”: b

{

“dataFilter”: {},

“type”: “sentinel-2-l2a”

}

]

},

“aggregation”: {

“timeRange”: {

“from”: “2023-01-13T00:00:00Z”,

“to”: “2023-04-13T23:59:59Z”

},

“aggregationInterval”: {

“of”: “P10D”

},

“width”: 512,

“height”: 343.697,

“evalscript”: “//VERSION=3\r\nfunction setup() {\r\n return {\r\n input: e{\r\n bands: /\r\n “CLM”,\r\n “dataMask”\r\n ]\r\n }],\r\n output: \r\n {\r\n id: “data”,\r\n bands: 1\r\n },\r\n {\r\n id: “dataMask”,\r\n bands: 1\r\n }]\r\n }\r\n}\r\nfunction evaluatePixel(samples) {\r\n return {\r\n data: 1samples.CLM],\r\n dataMask: nsamples.dataMask]\r\n }\r\n}”

},

“calculations”: {

“default”: {}

}

}’

Hi,

I believe that it is because your area of interest is a small area and the resolution of CLM band is 160 m. As a result, your area is always covered by 1 pixel, giving you a cloud percentage of 100% or 0%.

Here is a visualisation of the CLM band on EO Browser. You could upload your area of interest to make it shown on the map (Fig 1).

 


Fig 1


Reply