You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calculate altimiter values from station pressure? #3369
Area: CalcPertains to calculationsType: FeatureNew functionalitygood first issueStraightforward issues suitable for new and inexperienced contributors to the project
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.
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.
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.
Area: CalcPertains to calculationsType: FeatureNew functionalitygood first issueStraightforward issues suitable for new and inexperienced contributors to the project
Activity
sgdecker commentedon Jan 23, 2024
#2586 is related to this.
dopplershift commentedon Feb 14, 2024
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.
fronzi commentedon Aug 10, 2026
I'd like to take this one.
Plan: add
altimeter_from_station_pressure, the analytic inverse ofaltimeter_to_station_pressure(Smithsonian 1951 p. 269, solving Eq. 1/3 forA rather than p), and
sea_level_pressure_from_station_pressure, which exposesthe hypsometric reduction already used internally by
altimeter_to_sea_level_pressure. Both would go inmetpy.calc.basic, withdocstrings, entries in the Standard Atmosphere section of
docs/_templates/overrides/metpy.calc.rst, and tests intests/calc/test_basic.pyincluding a round-trip against the existing forwardfunctions.
Do those names fit the
X_from_Yconvention, or would you prefer somethingelse? Happy to adjust before I start.