Skip to main content
Ctrl+K
MetPy 1.7dev - Home MetPy 1.7dev - Home
  • User Guide
  • Reference Guide
  • Developer’s Guide
  • Example Gallery
  • Support
  • Release Notes
  • GitHub
  • Bluesky
  • Twitter
  • Calendar
  • User Guide
  • Reference Guide
  • Developer’s Guide
  • Example Gallery
  • Support
  • Release Notes
  • GitHub
  • Bluesky
  • Twitter
  • Calendar

Section Navigation

  • XArray Projection Handling
  • Sigma to Pressure Interpolation
  • Advanced Sounding
  • Cross Section Analysis
  • Four Panel Map
  • Isentropic Analysis
  • Meteogram
  • Advanced Sounding Plot with Complex Layout
  • Calculations
    • Parse angles
    • Dewpoint and Mixing Ratio
    • Angle to Direction
    • Wind Speed
    • Divergence
    • Vorticity
    • Absolute Vorticity
    • Total Deformation
    • Shearing Deformation
    • Stretching Deformation
    • Static Stability
    • Mean Pressure Weighted
    • Mountain Problem
    • Bulk Shear
    • Hydrostatic Thickness
    • Equivalent Potential Temperature
    • Advection
    • Gradient
    • Q-Vector
    • Smoothing
    • High/Low Analysis
    • Sounding Calculation Examples
  • File Formats
    • GINI Water Vapor Imagery
    • NEXRAD Level 3 File
    • NEXRAD Level 2 File
  • Gridding
    • Find Natural Neighbors Verification
    • Wind and Sea Level Pressure Interpolation
    • Point Interpolation
    • Inverse Distance Verification: Cressman and Barnes
    • Natural Neighbor Verification
  • Plotting
    • Simple Plotting
    • Raster Plots using Declarative Syntax
    • US Counties
    • Simple Plotting of Fronts
    • NOAA SPC Convective Outlook
    • Combined Plotting
    • Surface Analysis using Declarative Syntax
    • Upper Air Analysis using Declarative Syntax
    • NOAA NHC Wind Speed Probabilities
    • Skew-T with Complex Layout
    • Hodograph Inset
    • Sounding as Dataset Example
    • Plotting Fronts
    • Simple Sounding
    • Mesonet Station Plot
    • Station Plot
    • Station Plot with Layout
  • Remote Data
    • ML Weather Prediction Access and Plotting
    • Remote Data Access
  • Example Gallery

Example Gallery#

For more MetPy examples, please visit the MetPy Cookbook on Project Pythia.

General Examples#

Examples of using a variety of MetPy’s functionality together.

XArray Projection Handling

XArray Projection Handling

Sigma to Pressure Interpolation

Sigma to Pressure Interpolation

Advanced Sounding

Advanced Sounding

Cross Section Analysis

Cross Section Analysis

Four Panel Map

Four Panel Map

Isentropic Analysis

Isentropic Analysis

Meteogram

Meteogram

Advanced Sounding Plot with Complex Layout

Advanced Sounding Plot with Complex Layout

Calculations#

Examples using various calculation functions from MetPy.

Parse angles

Parse angles

Dewpoint and Mixing Ratio

Dewpoint and Mixing Ratio

Angle to Direction

Angle to Direction

Wind Speed

Wind Speed

Divergence

Divergence

Vorticity

Vorticity

Absolute Vorticity

Absolute Vorticity

Total Deformation

Total Deformation

Shearing Deformation

Shearing Deformation

Stretching Deformation

Stretching Deformation

Static Stability

Static Stability

Mean Pressure Weighted

Mean Pressure Weighted

Mountain Problem

Mountain Problem

Bulk Shear

Bulk Shear

Hydrostatic Thickness

Hydrostatic Thickness

Equivalent Potential Temperature

Equivalent Potential Temperature

Advection

Advection

Gradient

Gradient

Q-Vector

Q-Vector

Smoothing

Smoothing

High/Low Analysis

High/Low Analysis

Sounding Calculation Examples

Sounding Calculation Examples

File Formats#

Examples using MetPy’s support for reading various file formats.

GINI Water Vapor Imagery

GINI Water Vapor Imagery

NEXRAD Level 3 File

NEXRAD Level 3 File

NEXRAD Level 2 File

NEXRAD Level 2 File

Gridding#

Examples generating a grid of data from scattered point observations.

Find Natural Neighbors Verification

Find Natural Neighbors Verification

Wind and Sea Level Pressure Interpolation

Wind and Sea Level Pressure Interpolation

Point Interpolation

Point Interpolation

Inverse Distance Verification: Cressman and Barnes

Inverse Distance Verification: Cressman and Barnes

Natural Neighbor Verification

Natural Neighbor Verification

Plotting#

Examples using MetPy’s various specialty plotting routines.

Simple Plotting

Simple Plotting

Raster Plots using Declarative Syntax

Raster Plots using Declarative Syntax

US Counties

US Counties

Simple Plotting of Fronts

Simple Plotting of Fronts

NOAA SPC Convective Outlook

NOAA SPC Convective Outlook

Combined Plotting

Combined Plotting

Surface Analysis using Declarative Syntax

Surface Analysis using Declarative Syntax

Upper Air Analysis using Declarative Syntax

Upper Air Analysis using Declarative Syntax

NOAA NHC Wind Speed Probabilities

NOAA NHC Wind Speed Probabilities

Skew-T with Complex Layout

Skew-T with Complex Layout

Hodograph Inset

Hodograph Inset

Sounding as Dataset Example

Sounding as Dataset Example

Plotting Fronts

Plotting Fronts

Simple Sounding

Simple Sounding

Mesonet Station Plot

Mesonet Station Plot

Station Plot

Station Plot

Station Plot with Layout

Station Plot with Layout

Remote Data#

Examples using MetPy’s clients for accessing data from remote data sources, like public AWS S3 buckets.

ML Weather Prediction Access and Plotting

ML Weather Prediction Access and Plotting

Remote Data Access

Remote Data Access

Download all examples in Python source code: examples_python.zip

Download all examples in Jupyter notebooks: examples_jupyter.zip

Gallery generated by Sphinx-Gallery

previous

Infrastructure Guide

next

XArray Projection Handling

On this page
  • General Examples
  • Calculations
  • File Formats
  • Gridding
  • Plotting
  • Remote Data

© Copyright 2008–2025, MetPy Developers. Development is supported by Unidata and the National Science Foundation.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.