figures

A single function for plotting maps the AR6 way, possibly with hatching

figures.change_figure(variable, derivation_label, field, shade=True, mask1='', mask2='', pattern1='hatching', pattern2='stippling', relative=True, labelbar='True', title=None, custom_plot={}, number=None, mask=None)[source]

Returns a CliMAF plot object showing a 2d FIELD, with superimposition of PATTERN1 (resp. PATTERN2) where field MASK1 (resp. MASK2) is ‘set’ (actually where it exceeds value 0.9)

PATTERN1 and 2 are either : - Ncl settings for patterns, such as ‘gsnShadeHigh=3’, or - keywords : ‘hatching’, ‘stippling’, ‘crosses’

PATTERN1 default to hatching, PATTERN2 to stippling

Plot characteristics comply with AR6/WGI TSU guidelines re. colormaps, projection, … (except if changed through arg CUSTOM_PLOT, see below)

Toggle LABELBAR drives the presence of a labelbar in the plot. Its type is string => value must be “True” or “False”

The provided TITLE is plotted too. If a NUMBER is provided, it will be plotted in upper righ corner

VARIABLE, DERIVATION_LABEL, and logical toggle RELATIVE are used in order to choose a colormap and sensible data intervals for a change of the variable (arg RELATIVE indicating if FIELD is for a relative change)

However, this can be superseded by providing through CUSTOM_PLOT argument a dict of arguments for CliMAF function plot(), as e.g.

>>> custom_plot={"color":"AR6_Precip_12","min":-2, "max":2,"delta":0.4 ,focus:"land"}

For the time being, the most used value for DERIVATION_LABEL is ‘plain’, and the only other known cases are ‘dry’ (which stands for: the number of dry days per year) and ‘drain’ (daily rain depth for rainy days)