cli_options
Climate Data CLI Options
This module provides a set of CLI options for extracting climate data from the ERA5 and CMIP6 datasets. These options are used to specify the data to extract, such as the year, month, variable, and dataset. It also provides global variables representing the full space of valid values for these options.
with_agg_measure(*, allow_all: bool = False) -> Callable[[Callable[P, T]], Callable[P, T]]
Add aggregation measure option to a command.
Source code in src/climate_data/cli_options.py
with_agg_scenario(*, allow_all: bool = False) -> Callable[[Callable[P, T]], Callable[P, T]]
Add aggregation scenario option to a command.
Source code in src/climate_data/cli_options.py
with_agg_version() -> Callable[[Callable[P, T]], Callable[P, T]]
Add aggregation version option to a command.
with_block_key(*, allow_all: bool = False) -> Callable[[Callable[P, T]], Callable[P, T]]
Add block key option to a command.
Source code in src/climate_data/cli_options.py
with_hierarchy(choices: Sequence[str] = cdc.HIERARCHY_MAP, *, allow_all: bool = False) -> Callable[[Callable[P, T]], Callable[P, T]]
Add hierarchy option to a command.
Source code in src/climate_data/cli_options.py
with_location_id() -> Callable[[Callable[P, T]], Callable[P, T]]
Add location ID option to a command.
with_year(years: Collection[str], *, allow_all: bool = False) -> Callable[[Callable[P, T]], Callable[P, T]]
Create a CLI option for selecting a year.