Skip to content

Commit

Permalink
Merge pull request #135 from Open-EO/s1-extraction-fixes
Browse files Browse the repository at this point in the history
S1 extraction fixes
  • Loading branch information
GriffinBabe authored Aug 8, 2024
2 parents 15627c5 + 66272db commit 088dc15
Show file tree
Hide file tree
Showing 6 changed files with 267 additions and 58 deletions.
10 changes: 10 additions & 0 deletions src/openeo_gfmap/fetching/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ def generic_default_processor(cube: openeo.DataCube, **params):
"fetch": partial(_get_generic_fetcher, collection_name="AGERA5"),
"preprocessor": partial(_get_generic_processor, collection_name="AGERA5"),
},
Backend.CDSE_STAGING: {
"fetch": partial(_get_generic_fetcher, collection_name="AGERA5"),
"preprocessor": partial(_get_generic_processor, collection_name="AGERA5"),
},
Backend.FED: {
"fetch": partial(_get_generic_fetcher, collection_name="AGERA5"),
"preprocessor": partial(_get_generic_processor, collection_name="AGERA5"),
Expand All @@ -134,6 +138,12 @@ def generic_default_processor(cube: openeo.DataCube, **params):
_get_generic_processor, collection_name="COPERNICUS_30"
),
},
Backend.CDSE_STAGING: {
"fetch": partial(_get_generic_fetcher, collection_name="COPERNICUS_30"),
"preprocessor": partial(
_get_generic_processor, collection_name="COPERNICUS_30"
),
},
Backend.FED: {
"fetch": partial(_get_generic_fetcher, collection_name="COPERNICUS_30"),
"preprocessor": partial(
Expand Down
4 changes: 1 addition & 3 deletions src/openeo_gfmap/fetching/s1.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ def s1_grd_fetch_default(
"""
bands = convert_band_names(bands, BASE_SENTINEL1_GRD_MAPPING)

load_collection_parameters = params.get("load_collection", {})

cube = _load_collection(
connection,
bands,
collection_name,
spatial_extent,
temporal_extent,
fetch_type,
**load_collection_parameters,
**params,
)

if fetch_type is not FetchType.POINT and isinstance(spatial_extent, GeoJSON):
Expand Down
Loading

0 comments on commit 088dc15

Please sign in to comment.