tephi.isopleths¶
Tephigram isopleth support for generating and plotting tephigram lines, environment profiles and barbs.
In this module:
-
tephi.isopleths.
isobar
(min_theta, max_theta, axes, transform, kwargs, pressure)¶ Generate and plot an isobar line.
A line of constant pressure (mb).
Args:
- min_theta:
Minimum potential temperature, in degC, for the isobar extent.
- max_theta:
Maximum potential temperature, in degC, for the isobar extent.
- axes:
Tephigram plotting
matplotlib.axes.AxesSubplot
instance.
- transform:
Tephigram plotting transformation
matplotlib.transforms.CompositeGenericTransform
instance.
- kwargs:
Keyword arguments for the isobar
matplotlib.lines.Line2D
instance.
- pressure:
The isobar pressure value, in mb or hPa, to be plotted.
- Returns:
The isobar
matplotlib.lines.Line2D
instance.
-
tephi.isopleths.
mixing_ratio
(min_pressure, max_pressure, axes, transform, kwargs, mixing_ratio_value)¶ Generate and plot a humidity mixing ratio line.
A line of constant saturation mixing ratio with respect to a plane water surface (g kg-1).
Args:
- min_pressure:
Minumum pressure, in mb or hPa, for the mixing ratio line extent.
- max_pressure:
Maximum pressure, in mb or hPa, for the mixing ratio line extent.
- axes:
Tephigram plotting
matplotlib.axes.AxesSubplot
instance.
- transform:
Tephigram plotting transformation
matplotlib.transforms.CompositeGenericTransform
instance.
- kwargs:
Keyword arguments for the mixing ratio
matplotlib.lines.Line2D
instance.
- mixing_ratio_value:
The mixing ratio value to be plotted.
- Returns:
The mixing ratio
matplotlib.lines.Line2D
instance.
-
tephi.isopleths.
wet_adiabat
(max_pressure, min_temperature, axes, transform, kwargs, temperature)¶ Generate and plot a pseudo saturated wet adiabat line.
A line of constant equivalent potential temperature for saturated air parcels (degC).
Args:
- max_pressure:
Maximum pressure, in mb or hPa, for the wet adiabat line extent.
- min_temperature:
Minimum potential temperature, in degC, for the wet adiabat line extent.
- axes:
Tephigram plotting
matplotlib.axes.AxesSubplot
instance.
- transform:
Tephigram plotting transformation
matplotlib.transforms.CompositeGenericTransform
instance.
- kwargs:
Keyword arguments for the mixing ratio
matplotlib.lines.Line2D
instance.
- temperature:
The wet adiabat value, in degC, to be plotted.
- Returns:
The wet adiabat
matplotlib.lines.Line2D
instance.
Generate a wind arrow barb.
- class
tephi.isopleths.
Barbs
(axes)¶Generate a wind arrow barb.
plot
(barbs, **kwargs)¶Plot the sequence of barbs.
Args:
- barbs:
Sequence of speed, direction and pressure value triples for each barb. Where speed is measured in units of knots, direction in units of degrees (clockwise from north), and pressure must be in units of mb or hPa.
Kwargs:
- gutter:
Proportion offset from the right hand side axis to plot the barbs. Defaults to 0.1
Also see
matplotlib.pyplot.barbs()
refresh
()¶Refresh the plot with the barbs.
Generate an environmental lapse rate profile.
- class
tephi.isopleths.
Profile
(data, axes)¶Generate an environmental lapse rate profile.
barbs
(barbs, **kwargs)¶Plot the sequence of barbs associated with this profile.
Args:
- barbs:
Sequence of speed, direction and pressure value triples for each barb. Where speed is measured in units of knots, direction in units of degrees (clockwise from north), and pressure must be in units of mb or hPa.
Kwargs:
plot
(**kwargs)¶Plot the environmental lapse rate profile.
Kwargs:
- Returns:
The profile
matplotlib.lines.Line2D
refresh
()¶Refresh the plot with the profile and any associated barbs.