Skip to content

Commit

Permalink
Merge branch 'master' into 402-load_stac-shub-batch-processes
Browse files Browse the repository at this point in the history
  • Loading branch information
bossie committed Aug 22, 2023
2 parents 503d9b1 + 5cba56b commit 585ad4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openeogeotrellis/collections/s1backscatter_orfeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ def _creo_scan_for_band_tiffs(creo_path: pathlib.Path, log_prefix: str) -> Dict[
if match:
band_tiffs[match.group(1).lower()] = tiff
if not band_tiffs:
raise OpenEOApiException(f"sar_backscatter: No tiffs found in ${str(creo_path)}")
logger.error(f"{log_prefix} sar_backscatter: No tiffs found in ${str(creo_path)}")
return {}
logger.info(f"{log_prefix} Detected band tiffs: {band_tiffs}")
return band_tiffs

Expand Down Expand Up @@ -878,6 +879,9 @@ def process_product(product: Tuple[str, List[dict]]):
)

band_tiffs = S1BackscatterOrfeo._creo_scan_for_band_tiffs(creo_path, log_prefix)
if not band_tiffs:
return []


dem_dir_context = S1BackscatterOrfeo._get_dem_dir_context(
sar_backscatter_arguments=sar_backscatter_arguments,
Expand Down

0 comments on commit 585ad4e

Please sign in to comment.