inertial_advective_wind¶
-
metpy.calc.
inertial_advective_wind
(u, v, u_geostrophic, v_geostrophic, dx, dy, lats)[source]¶ Calculate the inertial advective wind.
\[\frac{\hat k}{f} \times (\vec V \cdot \nabla)\hat V_g\]\[\frac{\hat k}{f} \times \left[ \left( u \frac{\partial u_g}{\partial x} + v \frac{\partial u_g}{\partial y} \right) \hat i + \left( u \frac{\partial v_g} {\partial x} + v \frac{\partial v_g}{\partial y} \right) \hat j \right]\]\[\left[ -\frac{1}{f}\left(u \frac{\partial v_g}{\partial x} + v \frac{\partial v_g}{\partial y} \right) \right] \hat i + \left[ \frac{1}{f} \left( u \frac{\partial u_g}{\partial x} + v \frac{\partial u_g}{\partial y} \right) \right] \hat j\]This formula is based on equation 27 of [Rochette2006].
- Parameters
u ((M, N) pint.Quantity) – x component of the advecting wind
v ((M, N) pint.Quantity) – y component of the advecting wind
u_geostrophic ((M, N) pint.Quantity) – x component of the geostrophic (advected) wind
v_geostrophic ((M, N) pint.Quantity) – y component of the geostrophic (advected) wind
dx (pint.Quantity) – The grid spacing(s) in the x-direction. If an array, there should be one item less than the size of u along the applicable axis.
dy (pint.Quantity) – The grid spacing(s) in the y-direction. If an array, there should be one item less than the size of u along the applicable axis.
lats ((M, N) ndarray) – latitudes of the wind data in radians or with appropriate unit information attached
- Returns
(M, N) pint.Quantity – x component of inertial advective wind
(M, N) pint.Quantity – y component of inertial advective wind
Notes
Many forms of the inertial advective wind assume the advecting and advected wind to both be the geostrophic wind. To do so, pass the x and y components of the geostrophic with for u and u_geostrophic/v and v_geostrophic.
If inputs have more than two dimensions, they are assumed to have either leading dimensions of (x, y) or trailing dimensions of (y, x), depending on the value of
dim_order
.