Skip to main content

Hi! I am trying to get all the available dates for Landsat-8 over custom areas. For Sentinel I am using the catalog API and I can parse cloud coverage as a query option, but for Landsat-8 I don’t have that option. Is there any other way i can get the available dates, filtered by cloud percentage? Thank you!

Hi,

You should be able to parse cloud coverage as a query option for Landsat also. Here is an example:

curl -X POST https://services-uswest2.sentinel-hub.com/api/v1/catalog/search 
-H 'Content-Type: application/json'
-H 'Authorization: Bearer <my-token>'
-d '{
"collections": [
"landsat-ot-l2"
],
"datetime": "2021-12-01T00:00:00Z/2022-02-10T23:59:59Z",
"bbox": [
12.44693,
41.870072,
12.541001,
41.917096
],
"limit": 10,
"query": {
"eo:cloud_cover": {
"lt": 20
}
}
}'

I don’t know why it didn’t work before, thank you! I have another question now regarding the ColorGradientVisualizer.createBlueRed(minVal, maxVal) method in the evalscripts. Can you tell me how the gradient is made in terms of step size and colors? I need this information to create a dynamic legend, thanks!


The ColorGradientVisualizer.createBlueRed(minVal, maxVal) method interpolates values based on a set colour map.


It uses the colorgradientvisualizer method to interpolate colour based on the bluered colour pairs.


Reply