act.plotting.SkewTDisplay.plot_from_u_and_v

SkewTDisplay.plot_from_u_and_v(u_field, v_field, p_field, t_field, td_field, dsname=None, subplot_index=(0,), p_levels_to_plot=None, show_parcel=True, shade_cape=True, shade_cin=True, set_title=None, smooth_p=3, plot_barbs_kwargs={}, plot_kwargs={})[source]

This function will plot a Skew-T from a sounding dataset. The wind data must be given in u and v.

Parameters:
  • u_field (str) – The name of the field containing the u component of the wind.

  • v_field (str) – The name of the field containing the v component of the wind.

  • p_field (str) – The name of the field containing the pressure.

  • t_field (str) – The name of the field containing the temperature.

  • td_field (str) – The name of the field containing the dewpoint temperature.

  • dsname (str or None) – The name of the datastream to plot. Set to None to make ACT attempt to automatically determine this.

  • subplot_index (tuple) – The index of the subplot to make the plot on.

  • p_levels_to_plot (1D array) – The pressure levels to plot the wind barbs on. Set to None to have ACT to use neatly spaced defaults of 50, 100, 200, 300, 400, 500, 600, 700, 750, 800, 850, 900, 950, and 1000 hPa.

  • show_parcel (bool) – Set to True to show the temperature of a parcel lifted from the surface.

  • shade_cape (bool) – Set to True to shade the CAPE red.

  • shade_cin (bool) – Set to True to shade the CIN blue.

  • set_title (None or str) – The title of the plot is set to this. Set to None to use a default title.

  • smooth_p (int) – If pressure is not in descending order, will smooth the data using this many points to try and work around the issue. Default is 3 but inthe pbl retrieval code we have to default to 5 at times

  • plot_barbs_kwargs (dict) – Additional keyword arguments to pass into MetPy’s SkewT.plot_barbs.

  • plot_kwargs (dict) – Additional keyword arguments to pass into MetPy’s SkewT.plot.

Returns:

ax (matplotlib axis handle) – The axis handle to the plot.