extract
Climate Data Extraction
This module contains pipelines for extracting climate data from various sources.
cmip6
CMIP6 Data Extraction
extract_cmip6(cmip6_source: list[str], cmip6_experiment: list[str], cmip6_variable: list[str], output_dir: str, queue: str, overwrite: bool) -> None
Extract CMIP6 data.
Extracts CMIP6 data for the given source, experiment, and variable. We use the
the table at https://www.nature.com/articles/s41597-023-02549-6/tables/3 to determine
which CMIP6 source_ids to include. See ClimateData.load_koppen_geiger_model_inclusion
to load and examine this table. The extraction criteria does not completely
capture model inclusion criteria as it does not account for the year range avaialable
in the data. This determiniation is made when we proccess the data in later steps.
Source code in src/climate_data/extract/cmip6.py
load_cmip_data(zarr_path: str) -> xr.Dataset
Loads a CMIP6 dataset from a zarr path.
Source code in src/climate_data/extract/cmip6.py
elevation
extract_elevation(model_name: str, output_dir: str, queue: str) -> None
Download elevation data from Open Topography.
Source code in src/climate_data/extract/elevation.py
extract_elevation_task(model_name: str, lat_start: int, lon_start: int, output_dir: str) -> None
Download elevation data from Open Topography.