dropsondes.plot_points

dropsondes.plot_points(varname='slp', level=None, domain='dynamic', ax=None, cartopy_proj=None, **kwargs)[source]

Creates a plot of dropsonde data points.

Parameters
  • varname (str) – Variable to plot. Can be one of the keys in the dropsonde dictionary (retrieved using recon.dropsondes.data).

  • level (int, optional) – Pressure level (in hPa) to plot varname for. Only valid if varname is in “pres”, “hgt”, “temp”, “dwpt”, “wdir”, “wspd”.

  • domain (str/dict) – Domain for the plot. Default is “dynamic”. Please refer to Map Domain Options for available domain options.

  • ax (axes) – Instance of axes to plot on. If none, one will be generated. Default is none.

  • cartopy_proj (ccrs) – Instance of a cartopy projection to use. If none, one will be generated. Default is none.

Other Parameters
  • prop (dict) – Customization properties of recon plot. Please refer to Recon Properties for available options.

  • map_prop (dict) – Customization properties of Cartopy map. Please refer to Map prop for available options.

Returns

ax – Instance of axes containing the plot is returned.

Notes

To retrieve all possible varnames, check the data attribute of this Dropsonde object. For example, if ReconDataset was retrieved through a Storm object as in the example below, the possible varnames would be retrieved as follows:

from tropycal import tracks

#Get dataset object
basin = tracks.TrackDataset()

#Get storm object
storm = basin.get_storm(('michael',2018))

#Get dropsondes for this storm
storm.recon.get_dropsondes()

#Retrieve list of all possible varnames
print(storm.recon.dropsondes.data)