Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
26 stars 4 forks source link

Implement auto_polarization for SENTINEL1_GRD on creo #596

Open EmileSonneveld opened 11 months ago

EmileSonneveld commented 11 months ago

Similar to https://github.com/Open-EO/openeo-geopyspark-driver/issues/350 but this time for creo.

In creo_layercatalog.json, we could add "auto_polarization": true to the SENTINEL1_GRD The naming apears to be different then sentinelhub tough: https://sentinels.copernicus.eu/web/sentinel/missions/sentinel-1/data-products Data products are available in [...] dual polarisation (VV+VH or HH+HV) or single polarisation (HH or VV) for SM, IW and EW modes.

EmileSonneveld commented 11 months ago

An example for a client side workaround:

properties = {}
if isCreo:
    properties.update({"polarisation" : lambda polar: polar == "VV&VH"})

S1bands = connection.load_collection(
    "SENTINEL1_GRD",
    bands=['VH', 'VV'],
    properties=properties,
    # ...
)
EmileSonneveld commented 11 months ago

The creo_layercatalog.json commit removed this warning: UserWarning: SENTINEL1_GRD property filtering with properties that are undefined in the collection metadata (summaries): polarisation.