A Sounding#

Temperature and dewpoint profiles, with the ascent’s wind barb symbols on the gutter staff to the right of the diagram.

The sounding is Norman, Oklahoma at 12Z on 2013-05-20.

plot sounding
from __future__ import annotations

from typing import TYPE_CHECKING

import matplotlib.pyplot as plt

from tephpy import samples

if TYPE_CHECKING:
    from matplotlib.figure import Figure


def main() -> Figure:
    """Draw a sounding and its wind barbs.

    Returns
    -------
    matplotlib.figure.Figure
        The composed figure.
    """
    snd = samples.sounding("norman-12z")
    fig, ax = plt.subplots(figsize=(8.0, 4.0), subplot_kw={"projection": "tephigram"})
    ax.plot_sounding(snd)
    ax.plot_barbs(snd)
    ax.legend()
    return fig


if __name__ == "__main__":
    main()
    plt.show()

Total running time of the script: (0 minutes 0.183 seconds)

🏷 Tags: sounding, barbs

Gallery generated by Sphinx-Gallery