diff --git a/src/opera_utils/credentials.py b/src/opera_utils/credentials.py index 737dfda..685ce38 100644 --- a/src/opera_utils/credentials.py +++ b/src/opera_utils/credentials.py @@ -82,12 +82,14 @@ class ASFCredentialEndpoints(Enum): OPERA = "https://cumulus.asf.alaska.edu/s3credentials" OPERA_UAT = "https://cumulus-test.asf.alaska.edu/s3credentials" SENTINEL1 = "https://sentinel1.asf.alaska.edu/s3credentials" + NISAR = "https://nisar.asf.earthdatacloud.nasa.gov/s3credentials" ENDPOINT_TO_HOST = { ASFCredentialEndpoints.OPERA: "urs.earthdata.nasa.gov", ASFCredentialEndpoints.OPERA_UAT: "uat.urs.earthdata.nasa.gov", ASFCredentialEndpoints.SENTINEL1: "urs.earthdata.nasa.gov", + ASFCredentialEndpoints.NISAR: "urs.earthdata.nasa.gov", } diff --git a/src/opera_utils/missing_data.py b/src/opera_utils/missing_data.py index 623c2c1..22a7578 100644 --- a/src/opera_utils/missing_data.py +++ b/src/opera_utils/missing_data.py @@ -9,8 +9,6 @@ from typing import Any import numpy as np -from rich.console import Console -from rich.table import Table from ._dates import filter_by_date, get_dates from ._helpers import flatten, powerset, sorted_deduped_values @@ -326,6 +324,9 @@ def print_with_rich( options: Iterable[BurstSubsetOption], use_stderr: bool = True ) -> None: """Print a summary of the burst options using `rich.Table`.""" + from rich.console import Console # noqa: PLC0415 + from rich.table import Table # noqa: PLC0415 + console = Console(stderr=use_stderr) table = Table(show_header=True, header_style="bold magenta") table.add_column("Option", style="dim", width=6)