Open-EO / openeo-geotrellis-extensions

Java/Scala extensions for Geotrellis, for use with OpenEO GeoPySpark backend.
Apache License 2.0
5 stars 4 forks source link

Sentinel-2: filtering on quality flags #321

Open jdries opened 1 month ago

jdries commented 1 month ago

Sentinel-2 products have an xml file, MTD_MSIL2A.xml, that contains some quality flags:

FORMAT_CORRECTNESS (PASSED/FAILED) GENERAL_QUALITY (PASSED/FAILED) GEOMETRIC_QUALITY (PASSED/FAILED) L2A_QUALITY (PASSED/FAILED) RADIOMETRIC_QUALITY (PASSED/FAILED) SENSOR_QUALITY (PASSED/FAILED)

We should add a property for each flag separately, so users have fine grained control.

Example XML:

<Quality_Control_Checks>
<Quality_Inspections>
<quality_check checkType="FORMAT_CORRECTNESS">PASSED</quality_check>
<quality_check checkType="GENERAL_QUALITY">PASSED</quality_check>
<quality_check checkType="GEOMETRIC_QUALITY">PASSED</quality_check>
<quality_check checkType="L2A_QUALITY">PASSED</quality_check>
<quality_check checkType="RADIOMETRIC_QUALITY">PASSED</quality_check>
<quality_check checkType="SENSOR_QUALITY">PASSED</quality_check>
</Quality_Inspections>
<Failed_Inspections/>
</Quality_Control_Checks>
JorisCod commented 2 weeks ago

Quality flags show to be not useful, so closing this. The only useful property to possibly filter on is the Solar Zenith/Elevation Angle, which is in the STAC Collection.

JorisCod commented 2 weeks ago

This can be closed.