pyrad.graph.plot_dda_slice#

pyrad.graph.plot_dda_slice(grid, bg_field_name, slice_type, level, prdcfg, fname_list, titl=None, alpha=None, ax=None, fig=None, display=None, save_fig=True, display_type='quiver', wind_vectors='hor')[source]#

This procedure plots a cross section of wind vectors from wind fields generated by PyDDA in the X-Z plane at a specified latitude or longitude

Parameters

bg_field_namestr

name of the background radar field to plot (behind the wind vectors)

slice_typestr

type of slice, can be either “latitude” or “longitude”

levelint

slicing level in latitudinal or longitudinal direction

prdcfgdict

dictionary containing the product configuration

fname_listlist of str

list of names of the files where to store the plot

titlstr

Plot title

alphafloat or None

Set the alpha transparency of the grid plot. Useful for overplotting radar over other datasets.

axAxis

Axis to plot on. if fig is None a new axis will be created

figFigure

Figure to add the colorbar to. If none a new figure will be created

displayGridMapDisplay object

The display used

save_figbool

if true save the figure. If false it does not close the plot and returns the handle to the figure

display_typestr

Display type for the wind vectors, can be either ‘quiver’, ‘barbs’ or ‘streamline’

wind_vectorsstr

‘hor’ if horizontal wind vectors are displayed (u and v) or ‘ver’ if vertical wind vectors are displayed (u and w) for latitude slice and (v and w) for longitude slice

Returns:

  • fname_list (list of str or)

  • fig, ax, display (tupple) – list of names of the saved plots or handle of the figure an axes