scripts.plotting.global_mean_timeseries

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).

Classes

Lens2Data

Access Isla's LENS2 data to get annual means.

Functions

my_formatwarning(msg, *args, **kwargs)

custom warning

global_mean_timeseries(adfobj)

load time series file, calculate global mean, annual mean

conditional_save(adfobj, plot_name, fig[, verbose])

Determines whether to save figure

get_plot_loc(adfobj[, verbose])

Return the path for plot files.

make_plot(case_ts, lens2[, label, ref_ts_da])

plot yearly values of ref_ts_da

Module Contents

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

custom warning

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.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.

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

Access Isla’s LENS2 data to get annual means.

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

plot yearly values of ref_ts_da