earthkit.meteo.wind.w_from_omega¶
- earthkit.meteo.wind.w_from_omega(omega: ArrayLike, t: ArrayLike, p: ArrayLike) ArrayLike¶
- earthkit.meteo.wind.w_from_omega(omega: xarray.DataArray, t: xarray.DataArray, p: xarray.DataArray) xarray.DataArray
Compute the hydrostatic vertical velocity from pressure velocity.
- Parameters:
omega (
array-like) – Hydrostatic pressure velocity (Pa/s)t (
array-like) – Temperature (K)p (
array-like | xarray.DataArray) – Pressure (Pa)
- Returns:
Hydrostatic vertical velocity (m/s)
- Return type:
array-like | xarray.DataArray
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)
Implementations¶
w_from_omega()calls one of the following implementations depending on the type of the input arguments:earthkit.meteo.wind.array.w_from_omega()for array-likeearthkit.meteo.wind.xarray.w_from_omega()for xarray.DataArray
The function returns an object of the same type as the input arguments.