pyrtlib.utils.satvap#
- pyrtlib.utils.satvap(t: ndarray, Tconvert: Optional[ndarray] = None) ndarray #
Compute saturation vapor pressure (mbar) given temperature, T (K). If Tconvert is input, the calculation uses the saturation vapor pressure over ice (opposed to over water) for temperatures less than Tconvert (K).
- Parameters:
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 vapor pressure (mbar).
- Return type: