Function metfor::pressure_and_temperature_at_lcl [] [src]

pub fn pressure_and_temperature_at_lcl(
    temperature_c: f64,
    dew_point_c: f64,
    pressure_hpa: f64
) -> Result<(f64, f64)>

Calculate the temperature and pressure at the lifting condensation level (LCL).

Eqs 5.17 and 5.18 from "Weather Analysis" by Dušan Dujrić

  • temperature_c - the initial temperature in Celsius.
  • dew_point_c - the initial dew point in Celsius.
  • pressure_hpa - the initial pressure of the parcel in hPa.

Returns: The pressure at the LCL in hPa and the temperature at the LCL in Kelvin.