...
Computes the equivalent potential temperature from fieldsets on pressure levels. This is a Metview icon function, for detailed documentation please see Potential Temperature.
Anchor dewpoint_from_relative_humidity dewpoint_from_relative_humidity
number dewpoint_from_relative_humidity(t: number, r: number)
vector dewpoint_from_relative_humidity(t: vector, r: vector)
fieldset dewpoint_from_relative_humidity(t: fieldset, r: fieldset)
Computes the dewpoint temperature from the given temperature and relative humidity, where
t: temperature (K)r: relative humidity ([0-1])
The result is the dewpoint temperature in K units. On error nil is returned. The computation is based on the following formula:
| Mathdisplay |
|---|
r = \frac{e_{wsat}(td)}{e_{wsat}(t)} |
where
ewsat: the saturation vapour pressure over watertd: the dewpoint temperature
This functions was introduced in version 5.10.0.
Anchor dewpoint_from_specific_humidity dewpoint_from_specific_humidity
number dewpoint_from_specific_humidity(q: number, p: number)
vector dewpoint_from_specific_humidity(q: vector, p: vector)
fieldset dewpoint_from_specific_humidity(q: fieldset)
fieldset dewpoint_from_specific_humidity(q: fieldset, p: fieldset)
Computes the dewpoint temperature from the given specific humidity and pressure, where
q: specific humidity (kg/kg)p: pressure (Pa)
The result is the dewpoint temperature in K units. On error for nil is returned. The following rules are applied when q is a fieldset:
- if
qis a pressure level fieldset no second argument is needed - if
qis defined on ECMWF model levels (hybrid/eta)pis either a single LNSP (logarithm of surface pressure, identified byparamId=152) field or a fieldset defining the pressure on the levels ofq - for other level types
pis a fieldset defining the pressure on the levels ofq
- if
The computation is based on the following equation:
| Mathdisplay |
|---|
e(q, p) = e_{wsat}(td) |
where
e: the vapour pressureewsat: the saturation vapour pressure over watertd: the dewpoint temperature
This function was introduced in version 5.10.0.
Anchor lifted_condensation_level lifted_condensation_level
...