Parsing cloud coverage Landsat-8

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 Eduardo,

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

curl -X POST 
 -H 'Content-Type: application/json' 
 -H 'Authorization: Bearer <my-token>' 
 -d '{
  "collections": [
  "datetime": "2021-12-01T00:00:00Z/2022-02-10T23:59:59Z",
  "bbox": [
  "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.