From 6d95e5e648eac040d6ebbe4bf4c7820ef7d1d62f Mon Sep 17 00:00:00 2001 From: Kristof Van Tricht Date: Tue, 2 Jul 2024 21:41:14 +0200 Subject: [PATCH] Filter on polarization --- src/worldcereal/openeo/preprocessing.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/worldcereal/openeo/preprocessing.py b/src/worldcereal/openeo/preprocessing.py index 5cfa455b..87cdd2e4 100644 --- a/src/worldcereal/openeo/preprocessing.py +++ b/src/worldcereal/openeo/preprocessing.py @@ -202,7 +202,12 @@ def raw_datacube_S1( if orbit_direction is not None: extractor_parameters["load_collection"] = { - "sat:orbit_state": lambda orbit: orbit == orbit_direction + "sat:orbit_state": lambda orbit: orbit == orbit_direction, + "polarisation": lambda pol: pol == "VV&VH", + } + else: + extractor_parameters["load_collection"] = { + "polarisation": lambda pol: pol == "VV&VH", } extractor = build_sentinel1_grd_extractor(