API reference#
Core functionality#
The climepi package provides an accessor class for xarray.Dataset objects,
which can be used by chaining the climepi attribute to a Dataset. For example,
the sel_geo() method can be used to select a named
location from a dataset containing data with latitude and longitude coordinates (named
“lat” and “lon”, respectively) as follows:
import xarray as xr
import climepi
ds = xr.open_dataset("path/to/dataset.nc")
ds.climepi.sel_geo("London")
Classes#
|
Accessor class for xarray datasets accessed through the |
Methods#
|
Compute a range of ensemble statistics for a data variable. |
|
Compute the monthly mean of a data variable. |
|
Generate a map plot of a data variable. |
|
Generate a time series plot of a data variable. |
|
Plot contributions of climate uncertainty sources to uncertainty intervals. |
Plot decomposition of variance from different climate uncertainty sources. |
|
|
Run the epidemiological model on a climate dataset. |
|
Get data for the nearest grid point(s) to a specified location(s). |
Compute the group average of a data variable. |
|
Decompose uncertainty interval contributions. |
|
Decompose variance contributions from different climate uncertainty sources. |
|
|
Compute the yearly mean of a data variable. |
Calculate the portion of each year that is suitable given suitability data. |
Climate data subpackage#
Methods for downloading and accessing climate projection data are contained in the
climdata subpackage:
from climepi import climdata
Methods#
|
Retrieve and download climate projection data from a remote server. |
Retrieve file names of formatted climate data files. |
|
|
Retrieve an example climate dataset. |
Epidemiological model subpackage#
Classes and methods for running climate-sensitive epidemiological models are contained
in the epimod subpackage:
from climepi import epimod
Classes#
Base class for epidemiological models. |
|
|
Generic class for suitability models. |
Methods#
|
Get an example climate-sensitive epidemiological model. |
Front-end application subpackage#
A method to run the front-end application is contained in the app subpackage:
from climepi import app
app.run_app()
See Front-end application for information on how to run the application from the command line.
Methods#
|
Run the climepi front-end application locally. |