- uv2dvG_Wrap calculates the divergence via spherical harmonics and maintain meta data
- dv2uvg calculates the divergent wind components via spherical harmonics
- uv2vrG_Wrap computes the vorticity via spherical harmonics and maintain meta data
- vr2uvg computes the rotational wind components via spherical harmonics
- uv2dv_cfd computes the divergence via centerd finite differences
- uv2vr_cfd computes the vorticity via centerd finite differences
Example pages containing: tips | resources | functions/procedures
NCL: Divergent and Rotational Wind Components
The following equation is implemented within
mfc_div_1.ncl
This example uses uv2dvF_Wrap [uv2dvF] because the grid is a global fixed grid. For global gaussian, uv2dvG_Wrap [uv2dvG] should be used. For a regional grid uv2dv_cfd should be used.
MFC => Moisture Flux Convergence MFC_advect = -(u*(dq/dx)+v*(dq/dy)) ; advect moisture term MFC_conv = -q*((du/dx)+(dv/dy) ) ; [con/div]ergence term MFC = MFC_advect + MFC_convThe MFC_advect can be derived using advect_variable for global rectilinear grids or advect_variable_cfd for regional rectilinear grids
The MFC_conv can be derived using: uv2dvF_Wrap or uv2dvG_Wrap for global rectilinear grids or uv2dv_cfd for regional rectilinear grids. Then, multiply the derived quantity by specific humidity [q].
This example uses daily mean data from NOAA/OAR/ESRL PSD, Boulder, Colorado, USA. Specifically, NCEP_Reanalysis 2 daily mean data spanning 3-9 April 1993.
This is a test script. It is not fully tested. The returned quantities are:
q1 = (dT/dt) - [omega*static_stability - V.grad(T)] ; K/day q2 = -[(dH/dt) + V.grad(H) +omega*(dH/dp)] ; g/(kg-Pa) and Q1 = Cp*q1 ; apparent Heat Source Q2 = Lc*q2 ; apparent Moisture Sink