API documentation
cli
strun() -> None
data
get_run_directory(output_root: str | Path) -> Path
Gets a path to a datetime directory for a new output.
Parameters
output_root The root directory for all outputs.
Source code in src/rra_climate_health/data.py
save_raster(raster: rt.RasterArray, output_path: str | Path, num_cores: int = 1, **kwargs: typing.Any) -> None
Save a raster to a file with standard parameters.
Source code in src/rra_climate_health/data.py
data_prep
run_inference_data_prep
run_ldi_prep(output_root: str, year: list[str], queue: str) -> None
Prep LDI rasters from admin2 data
Source code in src/rra_climate_health/data_prep/run_inference_data_prep.py
run_ldi_prep_main(output_root: str | Path, year: int) -> None
Run LDI data preparation.
Source code in src/rra_climate_health/data_prep/run_inference_data_prep.py
run_ldi_prep_task(output_root: str, year: str) -> None
Run LDI data preparation.
Source code in src/rra_climate_health/data_prep/run_inference_data_prep.py
run_training_data_prep
run_training_data_prep(output_root: str, source_type: str) -> None
Run training data prep.
Source code in src/rra_climate_health/data_prep/run_training_data_prep.py
upstream_paths
These are paths the RRA team does not own.
They should only be accessed from the data_prep
subpackage. Downstream pipeline code
should depend on data we manage wherever practical and load that data using the
rra_climate_health.data
module.
inference
run_inference
forecast_scenarios_task(output_root: str, measure: str, results_version: str, model_version: str) -> None
Run forecasting applying the inference results, and output diagnostics.
Source code in src/rra_climate_health/inference/run_inference.py
model_inference(output_root: str, model_version: str, measure: str, cmip6_scenario: list[str], year: list[str], queue: str) -> None
Run model inference.
Source code in src/rra_climate_health/inference/run_inference.py
model_inference_task(output_root: str, measure: str, results_version: str, model_version: str, cmip6_scenario: str, year: str) -> None
Run model inference.
Source code in src/rra_climate_health/inference/run_inference.py
training
run_training
model_training(model_specification_path: str, output_root: str, queue: str) -> None
Run model training.
Source code in src/rra_climate_health/training/run_training.py
model_training_task(output_root: str, measure: str, model_version: str, age_group_id: str, sex_id: str) -> None
Run model training.