[][src]Function metfor::temperature_from_theta_e_saturated_and_pressure

pub fn temperature_from_theta_e_saturated_and_pressure<P, T>(
    pressure: P,
    theta_e_val: T
) -> Option<Celsius> where
    P: Pressure,
    HectoPascal: From<P>,
    T: Temperature,
    Kelvin: From<T>, 

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.

Returns: The temperature.