Cloud coverage is always 100%

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”: [
“data”: [
“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: [{\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: [samples.CLM],\r\n dataMask: [samples.dataMask]\r\n }\r\n}”
“calculations”: {
“default”: {}

Hi @laleded988 ,

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

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.