Skip to content

Commit

Permalink
use NBITS=16 when saving LOS files (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie authored Jul 16, 2024
1 parent 9e6d77c commit 1610ba9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/opera_utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
*DEFAULT_TIFF_OPTIONS,
# Note: we're dropping mantissa bits before we do not
# need prevision for LOS rasters (or incidence)
"DISCARD_LSB=6",
"NBITS=16",
"PREDICTOR=2",
)
6 changes: 5 additions & 1 deletion src/opera_utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ def _download_for_burst_ids(
if product == L2Product.CSLC:
logger.debug(f"Found {len(results)} total results before deduping pgeVersion")
results = filter_results_by_date_and_version(results)
logger.info(f"Found {len(results)} results")

msg = f"Found {len(results)} results"
if len(results) == 0:
raise ValueError(msg)
logger.info(msg)
session = _get_auth_session()
urls = _get_urls(results)
asf.download_urls(
Expand Down

0 comments on commit 1610ba9

Please sign in to comment.