plotting.global_mean_timeseries module

Use time series files to produce global mean time series plots for ADF web site.

Includes a minimal Class for bringing CESM2 LENS data from I. Simpson’s directory (to be generalized).

class scripts.plotting.global_mean_timeseries.Lens2Data(field)[source]

Access Isla’s LENS2 data to get annual means.

scripts.plotting.global_mean_timeseries.conditional_save(adfobj, plot_name, fig, verbose=None)[source]

Determines whether to save figure

scripts.plotting.global_mean_timeseries.get_plot_loc(adfobj, verbose=None)[source]

Return the path for plot files. Contains side-effect: will make the directory and parents if needed.

scripts.plotting.global_mean_timeseries.global_mean_timeseries(adfobj)[source]

load time series file, calculate global mean, annual mean for each case Make a combined plot, save it, add it to website. Include the CESM2 LENS result if it can be found.

scripts.plotting.global_mean_timeseries.make_plot(case_ts, lens2, label=None, ref_ts_da=None)[source]

plot yearly values of ref_ts_da

scripts.plotting.global_mean_timeseries.my_formatwarning(msg, *args, **kwargs)[source]

custom warning