It seems that you added a filter for maximum cloud coverage (the MAXCC part) in your wms request. The data could be filtered out if the cloud coverage of the tile exceeds the threshold you set for the filter.
I understood what you said but apparently it didn’t resolve.
What I need as a result is to process images in NDVI
But sometimes this image is returned only in red, no coloring and when I change the dates it returns correct. I would like to have available the dates that have data, for a certain geographic space.
May I have your complete catalog and wms request and the date returned by the catalog that resulted in a complete red image? This would help me identify the issue you had. Thank you.
I made a catalog request for sentinel-2-l1c and sentinel-2-l2a (which have NDVI layer) over a time period between 2021-11-01 and 2021-11-30 (the request you made) and there was no tile with a cloud coverage lower than 20% (which was set in your wms request MAXCC=20).
You can either increase the maximum cloud coverage or search for a longer time period. For example, if you search for tiles with a cloud coverage lower than or equal to 50%, you will get 2 tiles returned (on 2021-11-05 and 2021-11-25). Then you can modify your request to the following and you will get the data:
I only had one question: how did you manage to get the result of two dates [2021-11-05 and 2021-11-25]. In my request he answers more dates (the others don’t have data) and these two you mentioned have data.
It is because you are searching for all available data in the time rage. For the two dates 2021-11-05 and 2021-11-25 the cloud coverage of the tiles is less than or equal to 50%. The other dates shown in your request have data as well, just with a cloud coverage greater than 50%.
If you remove the line "distinct": "date" you will see that the tiles on 2021-11-20, 2021-11-15, and 2021-11-10 have a cloud coverage of 94.66%, 98.03%, and 99.93%. These tiles are filtered out if you set MAXCC=20 or MAXCC=50 in your wms request, therefore you get a complete red image.
To search for data with a maximum cloud coverage of 50%, please try the following: