diff --git a/src/ewoc_dag/cli_dem.py b/src/ewoc_dag/cli_dem.py index 2bb9e07..9d41344 100644 --- a/src/ewoc_dag/cli_dem.py +++ b/src/ewoc_dag/cli_dem.py @@ -50,7 +50,7 @@ def get_dem_data( resolution=dem_resolution, to_sen2cor=to_sen2cor ) else: - raise ValueError + raise ValueError("DEM type different than srtm, copdem is not possible!") # ---- CLI ---- diff --git a/src/ewoc_dag/eo_prd_id/s1_prd_id.py b/src/ewoc_dag/eo_prd_id/s1_prd_id.py index 05c7c73..9dbed1f 100644 --- a/src/ewoc_dag/eo_prd_id/s1_prd_id.py +++ b/src/ewoc_dag/eo_prd_id/s1_prd_id.py @@ -153,7 +153,7 @@ def beam_mode(self): @beam_mode.setter def beam_mode(self, value): - allowed_values = ['IW', 'EW', 'WV'] + allowed_values = ['SM', 'IW', 'EW', 'WV'] if value in allowed_values: self._beam_mode = value else: diff --git a/src/ewoc_dag/eodag_utils.py b/src/ewoc_dag/eodag_utils.py index 94f8b68..1127488 100644 --- a/src/ewoc_dag/eodag_utils.py +++ b/src/ewoc_dag/eodag_utils.py @@ -37,7 +37,7 @@ def get_product_by_id( products, _ = dag.search(id=product_id, provider=provider) if not products: logging.error("No results return by eodag!") - raise ValueError + raise ValueError("No results return by eodag!") out_prd_path = dag.download(products[0], outputs_prefix=out_dir) # delete zip file list_out = os.listdir(out_dir)