climepi.ClimEpiDatasetAccessor#

class climepi.ClimEpiDatasetAccessor(dataset)[source]#

Accessor for xarray.Dataset objects accessed via the climepi attribute.

Provides a range of methods, including for running epidemiological models, temporal averaging, analyzing uncertainty, and plotting.

Parameters:

dataset (xarray.Dataset) – A dataset object.

__init__(dataset)[source]#

Methods

__init__(dataset)

ensemble_stats([data_var, ...])

Compute a range of ensemble statistics for a data variable.

monthly_average([data_var])

Compute the monthly mean of a data variable.

plot_map([data_var, mask_ocean, mask_lakes])

Generate a map plot of a data variable.

plot_time_series([data_var])

Generate a time series plot of a data variable.

plot_uncertainty_interval_decomposition([...])

Plot contributions of climate uncertainty sources to uncertainty intervals.

plot_variance_decomposition([data_var, ...])

Plot decomposition of variance from different climate uncertainty sources.

run_epi_model(epi_model, **kwargs)

Run the epidemiological model on a climate dataset.

sel_geo(location[, lon, lat])

Get data for the nearest grid point(s) to a specified location(s).

temporal_group_average([data_var, frequency])

Compute the group average of a data variable.

uncertainty_interval_decomposition([...])

Decompose uncertainty interval contributions.

variance_decomposition([data_var, fraction, ...])

Decompose variance contributions from different climate uncertainty sources.

yearly_average([data_var])

Compute the yearly mean of a data variable.

yearly_portion_suitable([...])

Calculate the portion of each year that is suitable given suitability data.