Function metfor::temperature_c_from_theta_e_saturated_and_pressure [] [src]

pub fn temperature_c_from_theta_e_saturated_and_pressure(
    pressure_hpa: f64,
    theta_e_k: f64
) -> Result<f64>

Given the pressure and equivalent potential temperature, assume saturation and calculate the temperature.

This function is useful if you were trying to calculate the temperature for plotting a moist adiabat on a skew-t log-p diagram.

  • pressure_hpa - the initial pressure of the parcel in hPa.
  • theta_e_k - the equivalent potential temperature in Kelvin.

Returns: The temperature in Celsius.