cli
Command Line Interface
Command line interface tool for SCT.
Attributes
app
module-attribute
Python
app = typer.Typer(help='SCT tool for SAR products quality analysis.', context_settings={'help_option_names': ['-h', '--help'], 'max_content_width': 120})
Classes
Functions:
main
Python
main(ctx: Context, config: Path | None = typer.Option(None, '--config', '-cfg', exists=True, dir_okay=False, help='Path to the configuration file with settings.'), version: bool = typer.Option(None, '--version', callback=(lambda v: typer.echo(VERSION) or raise_exit() if v else None), is_eager=True, help='Show CLI version and exit'))
Common utilities for command line implementations.
Attributes
RadiometricQuantityOption
module-attribute
ExternalCorrectionInputProductOption
module-attribute
Functions:
logging_to_file
Context manager to safely add a file handler to sct logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path | None
|
path to log file to be used, if None, no file handler is added |
required |
log_elapsed_time
Decorate function to log elapsed time with the given name.
CLI Utilities
Command Line Interface auxiliary utilities.
Attributes
Classes
Functions:
convert_rosamond_csv
Python
convert_rosamond_csv(source: RosamondSourceOption, date: DateOption, output_directory: OutputDirectoryOption = None) -> None
Convert downloaded Rosamond Point Targets dataset .csv file to SCT compliant .csv file.
download_ionex_tec_maps
Python
download_ionex_tec_maps(date: DateOption, analysis_center: AnalysisCenterOption, email: EmailOption, output_directory: OutputDirectoryOption) -> None
Download IONEX TEC maps from NASA/CDDIS archive.
download_tropospheric_vmf3_maps
Python
download_tropospheric_vmf3_maps(date: DateOption, resolution: ResolutionOption, output_directory: OutputDirectoryOption) -> None
Download VMF3 Tropospheric Products.
convert_sarcalnet_json_to_csv
Python
convert_sarcalnet_json_to_csv(source: SARCalNetSourceOption, product_date: ProductDateOption = None, output_directory: OutputDirectoryOption = None) -> None
Convert downloaded SARCalNet survey .json file to SCT compliant .csv file. Product date can be provided to select the closest survey available, otherwise the latest survey is selected.