altimeter_to_station_pressure#

metpy.calc.altimeter_to_station_pressure(altimeter_value, height)[source]#

Convert the altimeter measurement to station pressure.

This function is useful for working with METARs since they do not provide altimeter values, but not sea-level pressure or station pressure. The following definitions of altimeter setting and station pressure are taken from [Smithsonian1951] Altimeter setting is the pressure value to which an aircraft altimeter scale is set so that it will indicate the altitude above mean sea-level of an aircraft on the ground at the location for which the value is determined. It assumes a standard atmosphere [NOAA1976]. Station pressure is the atmospheric pressure at the designated station elevation. Finding the station pressure can be helpful for calculating sea-level pressure or other parameters.

Parameters:
  • altimeter_value (pint.Quantity) – The altimeter setting value as defined by the METAR or other observation, which can be measured in either inches of mercury (in. Hg) or millibars (mb)

  • height (pint.Quantity) – Elevation of the station measuring pressure

Returns:

pint.Quantity – The station pressure in hPa or in. Hg. Can be used to calculate sea-level pressure.

Notes

This function is implemented using the following equations from the Smithsonian Handbook (1951) p. 269

Equation 1:
Amb=(pmb0.3)F
Equation 3:
F=[1+(p0naT0)Hbp1n]1n

Where,

p0 = standard sea-level pressure = 1013.25 mb

p1=pmb0.3 when p0=1013.25mb

gamma = lapse rate in [NOAA1976] standard atmosphere below the isothermal layer 6.5C.km.1

T0 = standard sea-level temperature 288 K

Hb= station elevation in meters (elevation for which station pressure is given)

n=aRdg=0.190284 where Rd is the gas constant for dry air

And solving for pmb results in the equation below, which is used to calculate station pressure (pmb)

pmb=[Ambn(p0aHbT0)]1n+0.3