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”: {}
}
}’
Page 1 / 1
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
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
Reply
Login to the community
No account yet? Create an account
Login with SSO
Login with Saml2 Login with OpenIdConnector
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.