pyrtlib.utils.mr2rh#
- pyrtlib.utils.mr2rh(p: ndarray, t: ndarray, w: ndarray, Tconvert: Optional[ndarray] = None) Tuple[ndarray, ndarray] #
Determine relative humidity (rh) given reference pressure (mbar), temperature (K), and water vapor mass mixing ratio (g/kg)
Two RHs are returned: rh1 is with RH defined as the ratio of water vapor partial pressure to saturation vapor pressure and rh2 is with RH defined as the ratio of water vapor mixing ratio to saturation mixing ratio.
if input, Tconvert is used as the temperature point to switch from using saturation vapor pressure over water to over ice.
- Parameters:
p (numpy.ndarray) – Pressure profile (mb).
t (numpy.ndarray) – Temperature profile (K).
w (numpy.ndarray) – Water Vapor Mixing ratio (g/kg).
Tconvert (numpy.ndarray, optional) – Threshold temperature below which saturation water pressure is calculated over ice instead of liquid water. Defaults to None.
- Returns:
Relative humidity using ratios of gas pressures (%) numpy.ndarray: Relative humidity using WMO definition (%)
- Return type:
Examples using pyrtlib.utils.mr2rh
#
Performing Downwelling Brightness Temperature calculation
Performing sensitivity of spectroscopic parameters
Performing Upwelling Brightness Temperature calculation
Performing Downwelling Brightness Temperature calculation with Ozone
Logarithmic dependence of monochromatic radiance at 22.235 and 183 GHz
Performing Downwelling Brightness Temperature calculation in cloudy condition.
Water Vapour Absorption Profiles
Computation of Weighting Functions