climepi.ClimEpiDatasetAccessor

climepi.ClimEpiDatasetAccessor#

class climepi.ClimEpiDatasetAccessor(xarray_obj)#

Accessor class for xarray datasets accessed through the .climepi attribute.

Provides core methods, including for computing temporal and ensemble statistics, and for plotting.

__init__(xarray_obj)#

Methods

__init__(xarray_obj)

ensemble_stats([data_var, ...])

Compute a range of ensemble statistics for a data variable.

estimate_ensemble_stats([data_var, ...])

Estimate ensemble statistics for a data variable.

monthly_average([data_var])

Compute the monthly mean of a data variable.

months_suitable([suitability_var_name, ...])

Calculate the number of months suitable each year from monthly suitability data.

plot_map([data_var, include_ocean])

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, **kwargs)

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.