Skip to content

Calculate altimiter values from station pressure? #3369

Description

@nitrogen76

What should we add?

It would be nice (unless I can't figure out how to do this with existing code, which is absolutely a posibility also) to be able to calculate altimeter values from station pressure (and of course height), as well as sea level pressure from station pressure (and temp and height)

I see we have the reverse for both, but it'd be nice to be able to convert the opposite.

Reference

Formula I currently use to do this in other code is this:
https://www.weather.gov/media/epz/wxcalc/stationPressure.pdf

But would be nice if I could do it in other code with metpy as well

Activity

  1. sgdecker commented on Jan 23, 2024

    @sgdecker
    Contributor

    #2586 is related to this.

  2. added
    Area: Calc
    good first issue
    on Feb 14, 2024
  3. dopplershift commented on Feb 14, 2024

    @dopplershift
    Member

    We're probably not going to get to this for awhile, but would be happy to see someone tackle this, it should be straightforward. It doesn't look like the above PDF matches anything we do internally, so it would be good to track down a proper scholarly source for that if it's the best way to proceed.

  4. fronzi commented on Aug 10, 2026

    @fronzi

    I'd like to take this one.

    Plan: add altimeter_from_station_pressure, the analytic inverse of
    altimeter_to_station_pressure (Smithsonian 1951 p. 269, solving Eq. 1/3 for
    A rather than p), and sea_level_pressure_from_station_pressure, which exposes
    the hypsometric reduction already used internally by
    altimeter_to_sea_level_pressure. Both would go in metpy.calc.basic, with
    docstrings, entries in the Standard Atmosphere section of
    docs/_templates/overrides/metpy.calc.rst, and tests in
    tests/calc/test_basic.py including a round-trip against the existing forward
    functions.

    Do those names fit the X_from_Y convention, or would you prefer something
    else? Happy to adjust before I start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: CalcType: Featuregood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions