Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ To be even more explicit, you can use [`tee`](https://en.wikipedia.org/wiki/Tee_

## Generate an ARIA-S1-GUNW using CDSE for Sentinel-1 Download

By default, Sentinel-1 SLC granules are downloaded from the [Alaska Satellite Facility (ASF)](https://asf.alaska.edu/). As an alternative, particularly suited for European users or those operating within the European cloud ecosystem, granules can be downloaded from the [Copernicus Data Space Ecosystem (CDSE)](https://dataspace.copernicus.eu/) by passing `--download-source cdse`. Metadata lookups and bounding box checks still use ASF, so a valid `~/.netrc` entry for `urs.earthdata.nasa.gov` remains required. Additionally, CDSE credentials must be configured as described in the *Additional setup* section above.
By default, Sentinel-1 SLC granules are downloaded from the [Alaska Satellite Facility (ASF)](https://asf.alaska.edu/). As an alternative, particularly suited for European users or those operating within the European cloud ecosystem, granules can be downloaded from the [Copernicus Data Space Ecosystem (CDSE)](https://dataspace.copernicus.eu/) by passing `--download-source CDSE`. Metadata lookups and bounding box checks still use ASF, so a valid `~/.netrc` entry for `urs.earthdata.nasa.gov` remains required. Additionally, CDSE credentials must be configured as described in the *Additional setup* section above.

```
isce2_topsapp --reference-scenes S1A_IW_SLC__1SDV_20220212T222803_20220212T222830_041886_04FCA3_2B3E \
S1A_IW_SLC__1SDV_20220212T222828_20220212T222855_041886_04FCA3_A3E2 \
--secondary-scenes S1A_IW_SLC__1SDV_20220131T222803_20220131T222830_041711_04F690_8F5F \
S1A_IW_SLC__1SDV_20220131T222828_20220131T222855_041711_04F690_28D7 \
--frame-id 25502 \
--download-source cdse
--download-source CDSE
```

## What makes an ARIA-S1-GUNW Product *standard*?
Expand Down
14 changes: 7 additions & 7 deletions isce2_topsapp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def localize_data(
dry_run: bool = False,
water_mask_flag: bool = True,
geocode_resolution: int = 90,
download_source: str = "asf",
download_source: str = "ASF",
) -> dict:
"""The dry-run prevents gets necessary metadata from SLCs and orbits.

Expand Down Expand Up @@ -209,12 +209,12 @@ def get_slc_parser():
parser.add_argument(
"--download-source",
type=str,
choices=["asf", "cdse"],
default="asf",
choices=["ASF", "CDSE"],
default="ASF",
help=(
"Source for downloading Sentinel-1 SLC granules. "
"'asf' uses Alaska Satellite Facility (requires Earthdata credentials). "
"'cdse' uses Copernicus Data Space Ecosystem (requires CDSE credentials "
"'ASF' uses Alaska Satellite Facility (requires Earthdata credentials). "
"'CDSE' uses Copernicus Data Space Ecosystem (requires CDSE credentials "
"via CDSE_USERNAME/CDSE_PASSWORD env vars or ~/.netrc)."
),
)
Expand Down Expand Up @@ -260,7 +260,7 @@ def gunw_slc():
# Validation
ensure_earthdata_credentials(args.username, args.password)
# Also validate CDSE credentials if using CDSE for download
if args.download_source == "cdse":
if args.download_source == "CDSE":
from isce2_topsapp.localize_slc_cdse import ensure_cdse_credentials

ensure_cdse_credentials()
Expand Down Expand Up @@ -490,7 +490,7 @@ def coseis_sar():
# Validation - always need Earthdata creds for ASF metadata lookup
ensure_earthdata_credentials(args.username, args.password)
# Also validate CDSE credentials if using CDSE for download
if args.download_source == "cdse":
if args.download_source == "CDSE":
from isce2_topsapp.localize_slc_cdse import ensure_cdse_credentials

ensure_cdse_credentials()
Expand Down
4 changes: 2 additions & 2 deletions isce2_topsapp/localize_slc.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def download_slcs(
min_frame_coverage: float = MIN_FRAME_COVERAGE_DEFAULT,
max_workers_for_download: int = 5,
dry_run: bool = False,
download_source: str = "asf",
download_source: str = "ASF",
) -> dict:
reference_obs = get_asf_slc_objects(reference_ids)
secondary_obs = get_asf_slc_objects(secondary_ids)
Expand Down Expand Up @@ -234,7 +234,7 @@ def download_slcs(
if frame_id != -1:
processing_geo = _get_frame_by_id(frame_id).geometry

if download_source == "cdse":
if download_source == "CDSE":
from isce2_topsapp.localize_slc_cdse import download_slcs_from_cdse

all_ids = reference_ids + secondary_ids
Expand Down