Skip to content

Commit

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

meteo_data = precomposited_datacube_METEO(
Expand Down

0 comments on commit cb21036

Please sign in to comment.