operators.relhum¶
Relative humidity operators.
Functions
|
Calculate relative humidity. |
- meteodatalab.operators.relhum.relhum(w, t, p, clipping=True, phase: Literal['water', 'ice', 'water+ice'] = 'water')[source]¶
Calculate relative humidity.
- Parameters:
w (xarray.DataArray) – water vapor mixing ratio in kg/kg
t (xarray.DataArray) – temperature in Kelvin
p (xarray.DataArray) – pressure in Pa
clipping (bool) – clips the relative humidity to [0,100] interval. Only upper bound is controlled by this parameter, since lower bound clipping is always performed.
phase (Literal["water", "ice", "water+ice"]) – Customizes how relative humidity is computed. ‘water’ over water ‘ice’ over ice ‘water+ice’ over mixed phase
- Returns:
relative humidity field in %
- Return type:
xarray.DataArray