pyrtlib.utils.satmix#
- pyrtlib.utils.satmix(p: ndarray, t: ndarray, Tconvert: Optional[ndarray] = None) ndarray #
Compute saturation mixing ratio (g/kg) given reference pressure, p (mbar]) and temperature, T (K). If Tconvert input, the calculation uses the saturation vapor pressure over ice (opposed to over water) for temperatures less than Tconvert [K].
DCT, updated 3/5/00
- Parameters:
p (numpy.ndarray) – Pressure profile (mb).
t (numpy.ndarray) – Temperature profile (K).
Tconvert (Optional[numpy.ndarray], optional) – Threshold temperature below which saturation water pressure is calculated over ice instead of liquid water. Defaults to None.
- Returns:
Saturation mixing ratio (g/kg).
- Return type: