w_from_omega
- w_from_omega(omega, t[, p])
Computes the hydrostatic vertical velocity from pressure velocity (
omega
) for a given temperature (t
) and pressure (p
).- Parameters
- Return type
same type as
omega
or None
The result is the vertical velocity in m/s units. On error None is returned. The following rules are applied when
omega
is aFieldset
:if
omega
is a pressure levelFieldset
nop
is neededif
omega
is defined on ECMWF model levels (hybrid/eta)p
must be either a single LNSP (logarithm of surface pressure, identified by paramId=152) field or aFieldset
defining the pressure on the same levels asomega
for other level types
p
must be aFieldset
defining the pressure on the same levels asomega
.
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 (287.058 J/(kg K)).
g is the gravitational acceleration (9.81 m/s2)