Skip to content

Commit

Permalink
changed collection name from copernicus to cop
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVerelst committed Jun 27, 2024
1 parent dff870a commit 9fd7310
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/worldcereal/openeo/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,10 @@ def worldcereal_preprocessed_inputs_gfmap(
collections: Optional[List[str]] = None,
) -> DataCube:
if not all(
coll in {"sentinel1", "sentinel2", "copernicus", "meteo"}
for coll in collections
coll in {"sentinel1", "sentinel2", "cop", "meteo"} for coll in collections
):
raise ValueError(
f"Invalid collection name. Choose from {['sentinel1', 'sentinel2', 'copernicus', 'meteo']}"
f"Invalid collection name. Choose from {['sentinel1', 'sentinel2', 'cop', 'meteo']}"
)
cube_list = []
# Extraction of S2 from GFMAP
Expand Down Expand Up @@ -359,7 +358,7 @@ def worldcereal_preprocessed_inputs_gfmap(
dem_data = dem_data.linear_scale_range(0, 65534, 0, 65534)

# Append the copernicus data to the list
if collections is None or "copernicus" in collections:
if collections is None or "cop" in collections:
cube_list.append(dem_data)

meteo_data = precomposited_datacube_METEO(
Expand Down

0 comments on commit 9fd7310

Please sign in to comment.