scripts.plotting.global_mean_timeseries ======================================= .. py:module:: scripts.plotting.global_mean_timeseries .. autoapi-nested-parse:: 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 ------- .. autoapisummary:: scripts.plotting.global_mean_timeseries.Lens2Data Functions --------- .. autoapisummary:: scripts.plotting.global_mean_timeseries.my_formatwarning scripts.plotting.global_mean_timeseries.global_mean_timeseries scripts.plotting.global_mean_timeseries.conditional_save scripts.plotting.global_mean_timeseries.get_plot_loc scripts.plotting.global_mean_timeseries.make_plot Module Contents --------------- .. py:function:: my_formatwarning(msg, *args, **kwargs) custom warning .. py:function:: global_mean_timeseries(adfobj) 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. .. py:function:: conditional_save(adfobj, plot_name, fig, verbose=None) Determines whether to save figure .. py:function:: get_plot_loc(adfobj, verbose=None) Return the path for plot files. Contains side-effect: will make the directory and parents if needed. .. py:class:: Lens2Data(field) Access Isla's LENS2 data to get annual means. .. py:attribute:: field .. py:method:: _include_lens() .. py:function:: make_plot(case_ts, lens2, label=None, ref_ts_da=None) plot yearly values of ref_ts_da