dmit.calc.pressure module

Tools for computing ps and slp

dmit.calc.pressure.altimeter_setting(ps, altitude)[source]

Follows computation from Madaus and Mass 2017 p. 513. It computes the altimeter setting from bias corrected values

Parameters
  • ps (float) – Surface pressure in hPa

  • altitude (float) – Altitude in m

Returns

slp – Sea level pressure in hPa

Return type

float

dmit.calc.pressure.netatmo_pressure_correction(p0, h)[source]

Convert SLP reported by Netatmo to Surface pressure. Necessary because Netatmo uses a very crude formula.

Parameters
  • p0 (float) – Netatmo SLP in hPa

  • h (float) – Altitude of station in meters

Returns

ps – Surface pressure

Return type

float

dmit.calc.pressure.wmo_ps_to_slp(Ps, H, T, RH=None, Td=None)[source]

Correction to Sea Level Pressure using WMO recommendations

Parameters
  • T (float) – 2 m Temperature at station in Celcius

  • Ps (float) – Station pressure in hPa

  • Hp (float) – Station elevation in gpm

  • RH (float (optional)) – Relative Humidity

  • Td (float (optional)) – 2 m Dewpoint temperature at station in Celcius

Returns

slp – Sea level pressure in hPa

Return type

float

Notes

Either RH or Td must be specified. Otherwise a very bad guess is made.

Following: https://www.wmo.int/pages/prog/www/IMOP/meetings/SI/ET-Stand-1/Doc-10_Pressure-red.pdf