plotting.tape_recorder module

scripts.plotting.tape_recorder.blue2red_cmap(n, nowhite=False)[source]

combine two existing color maps to create a diverging color map with white in the middle n = the number of contour intervals nowhite = choice of white separating the diverging colors or not

scripts.plotting.tape_recorder.cosweightlat(darray, lat1, lat2)[source]

Calculate the weighted average for an [:,lat] array over the region lat1 to lat2

scripts.plotting.tape_recorder.get5by5coords_zmplots()[source]

positioning for 5x5 plots

scripts.plotting.tape_recorder.plot_pre_mon(fig, data, ci, cmin, cmax, expname, x1=None, x2=None, y1=None, y2=None, oplot=False, ax=None, cmap='precip', taxis='time', paxis='lev', climo_yrs=None)[source]

Plot seasonal cycle, pressure versus time.

scripts.plotting.tape_recorder.plotcolorbar(fig, ci, cmin, cmax, titlestr, x1, x2, y1, y2, cmap='blue2red', orient='horizontal', posneg='both', ticks=None, fsize=14, nowhite=False, contourlines=False, contourlinescale=1)[source]
plot a color bar
Input:

fig = the figure identified ci = the contour interval for the color map cmin = the minimum extent of the contour range cmax = the maximum extent of the contour range titlestr = the label for the color bar x1 = the location of the left edge of the color bar x2 = the location of the right edge of the color bar y1 = the location of the bottom edge of the color bar y2 = the location of the top edge of the color bar cmap = the color map to be used (only set up for blue2red at the moment) orient = the orientation (horizontal or vertical) posneg = if “both”, both positive and negative sides are plotted

if “pos”, only the positive side is plotted if “neg”, only the negative side is plotted

ticks = user specified ticklabels fsize = user specified font size contourlines = used to overplot contour lines contourlinescale = scale factor for contour lines to be overplotted nowhite = choice of white separating the diverging colors or not

scripts.plotting.tape_recorder.precip_cmap(n, nowhite=False)[source]

combine two existing color maps to create a diverging color map with white in the middle. browns for negative, blues for positive n = the number of contour intervals nowhite = choice of white separating the diverging colors or not

scripts.plotting.tape_recorder.red2blue_cmap(n, nowhite=False)[source]

combine two existing color maps to create a diverging color map with white in the middle n = the number of contour intervals nowhite = choice of white separating the diverging colors or not

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

Calculate the weighted latitude average for the simulations and plot the values of Q against two sets of obseravations, MLS and ERA5, for the tropics between 10S and 10N.

MLS h2o data is for 09/2004-11/2021 ERA5 Q data is for 01/1980-12/2020

Optional built-in colormaps:
  • blue2red

  • precip

  • precip_nowhite -> default cmap

  • red2blue

NOTE: If the baseline case is observations, it will be ignored

since a defualt set of obs are already being compared against in the tape recorder.