earthkit.meteo.wind.fieldlist.w_from_omega¶
- earthkit.meteo.wind.fieldlist.w_from_omega(omega, t, p=None)¶
Compute the hydrostatic vertical velocity from pressure velocity, temperature and pressure.
- Parameters:
omega (
FieldList|Field) – Hydrostatic pressure velocity (Pa/s).t (
FieldList|Field) – Temperature (K). Must have the same number of fields asomegaand be of the same type (FieldList or Field).p (
FieldList|Field|Iterable[float]|float|None) – Pressure (Pa). If None, inferred from the field metadata ofomega. Otherwise, ifomegais a FieldListpmust be a FieldList or an array-like of the same length asomega. Ifomegais a Field,pmust be a single Field or a float.
- Returns:
Hydrostatic vertical velocity (m/s). The result has the same type as the input (FieldList or Field).
- Return type:
FieldList|Field
Notes
The computation is based on the following hydrostatic formula:
\[w = - \frac{\omega t R_{d}}{p g}\]where
\(R_{d}\) is the specific gas constant for dry air (see
earthkit.meteo.constants.Rd).\(g\) is the gravitational acceleration (see
earthkit.meteo.constants.g)