Function metfor::temperature_from_equiv_pot_temp_saturated_and_pressure [−][src]
pub fn temperature_from_equiv_pot_temp_saturated_and_pressure<P, T>(
pressure: P,
theta_e_val: T
) -> Option<Celsius> where
P: Pressure,
HectoPascal: From<P>,
T: Temperature,
Kelvin: From<T>,
Expand description
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.