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:

numpy.ndarray

Examples using pyrtlib.utils.mr2rh#

Generic Example

Generic Example

Atmospheric Profiles

Atmospheric Profiles

Performing Downwelling Brightness Temperature calculation

Performing Downwelling Brightness Temperature calculation

Performing sensitivity of spectroscopic parameters

Performing sensitivity of spectroscopic parameters

Performing Upwelling Brightness Temperature calculation

Performing Upwelling Brightness Temperature calculation

Performing Downwelling Brightness Temperature calculation with Ozone

Performing Downwelling Brightness Temperature calculation with Ozone

Logarithmic dependence of monochromatic radiance at 22.235 and 183 GHz

Logarithmic dependence of monochromatic radiance at 22.235 and 183 GHz

Performing Downwelling Brightness Temperature calculation in cloudy condition.

Performing Downwelling Brightness Temperature calculation in cloudy condition.

Water Vapour Absorption Profiles

Water Vapour Absorption Profiles

Computation of Weighting Functions

Computation of Weighting Functions

Uncertainty Example

Uncertainty Example