1.5.1.2.2. polar2grid._glue_argparser module¶
Argument parsing and script setup for the main glue.py script.
- class polar2grid._glue_argparser.GlueArgumentParser(argv: list[str], is_polar2grid: bool)[source]¶
Bases:
object
Helper class for parsing and grouping command line arguments.
- polar2grid._glue_argparser._add_common_arguments(parser: ArgumentParser, binary_name: str) None [source]¶
- polar2grid._glue_argparser._add_component_parser_args(parser: ArgumentParser, component_type: str, component_names: list[str]) list [source]¶
- polar2grid._glue_argparser._fsfiles_for_s3(input_filenames)[source]¶
Convert S3 URLs to something Satpy can understand and use.
Examples
Example S3 URLs (no caching):
polar2grid.sh ... -f s3://noaa-goes16/ABI-L1b-RadC/2019/001/17/*_G16_s20190011702186*
Example S3 URLs using fsspec caching:
polar2grid.sh ... -f simplecache::s3://noaa-goes16/ABI-L1b-RadC/2019/001/17/*_G16_s20190011702186*
- polar2grid._glue_argparser._retitle_optional_arguments(parser)[source]¶
Hack to make the optional arguments say what we want.
- polar2grid._glue_argparser._validate_reader_writer_args(parser, args, use_polar2grid_defaults)[source]¶
- polar2grid._glue_argparser.get_default_output_filename(reader: str, writer: str, is_polar2grid: bool)[source]¶
Get a default output filename based on what reader we are reading.
- polar2grid._glue_argparser.get_input_files(input_filenames)[source]¶
Convert directories to list of files.