Access to cloud cover data after loading

Hello,

How to access Sentinel-2 cloud cover data ? (Sentinel-2 L2A) It is possible to filter in load_collection() but when I search for the information in results.get_metadata() I cannot find the mention of cloud cover.

Yours sincerely,

Tristan Fortin

Hi @tristan.fortin,

Could you provide me with the ID of your batch job? It looks like “j-250…”.

Cheers,
Jan

Hello @jan.van.den.bosch

The batch ID is for yesterday: cdse-j-2506241701264c6a892058bb32d9bc0a or for today :cdse-j-2506251219554416b9567321231ac6cb.

Yours sincerely,

Tristan Fortin

Hi @tristan.fortin,

It’s true that this collection allows you to filter on cloud cover but this merely acts as a way to reduce the number of Sentinel 2 L2A input products/tiles that OpenEO considers for your job; these input products indeed have a cloud cover property so you can e.g. limit your data to S2 tiles for which there is certain maximum percentage of cloud pixels.

However, OpenEO will not attempt to calculate this cloud cover percentage and put it in the job’s metadata as such.

What you might be looking for is the SCL band of the SENTINEL2_L2A collection as it contains cloud information at the pixel level so you can construct a job to derive it from this.

Let me know if anything is not clear.

Cheers,
Jan

Indeed, it is possible to determine cloud cover with the SCL band. But unfortunately, they are not present in the metadata.
Thank you Jan Van Den Bosch for your answers.

Yours sincerely,

Tristan Fortin