weatherbench2.derived_variables.VerticalVelocity
- class weatherbench2.derived_variables.VerticalVelocity(u_name='u_component_of_wind', v_name='v_component_of_wind')
Compute vertical wind velocity, assuming the hydrostatic approximation.
To calculate ω, we integrate the continuity equation [1] in pressure coordinates:
∇_p · u + ∂ω/∂p = 0 ω = -∫ dp ∇_p · u
[1] See section 8.6.1 from Durran, D. R. Numerical Methods for Fluid Dynamics: With Applications to Geophysics. (Springer, New York, NY, 2010).
- Parameters:
u_name (str) –
v_name (str) –
- __init__(u_name='u_component_of_wind', v_name='v_component_of_wind')
- Parameters:
u_name (str) –
v_name (str) –
- Return type:
None
Methods
__init__([u_name, v_name])compute(dataset)Compute derived variable, returning it in a new DataArray.
Attributes
all_input_core_dimsThe set of all input core dimensions.
base_variablesReturn a list of base variables.
core_dimsReturn core dimensions needed for computing this variable.
u_namev_name