Vertical

Grid family
vertical
Kind
grid
Source
src/grids/vertical.jl
Tags
#grid #structured #vertical #column #sigma #hybrid

Description

The vertical family is a stand-alone 1D column of stacked levels. It is the column factor in any 2D-horizontal × 1D-vertical product grid, and it is also used directly by box and column models.

The coordinate option selects the vertical coordinate. The accepted kinds (see _VERTICAL_COORDINATES in src/grids/vertical.jl) are:

  • :z — altitude in metres
  • :sigma — σ = (p − pₜ) / (pₛ − pₜ), terrain-following
  • :eta — η hybrid-coordinate parameter
  • :theta — potential-temperature (isentropic) coordinate
  • :hybrid_sigma_theta — hybrid σ–θ coordinate (ak/bk coefficients)
  • :z_star — height-based terrain-following (z*) coordinate

(There is no :pressure coordinate — pressure is a metric name, derived from the levels, not a coordinate value.) The accessor stores the per-level edge array directly; cell widths are derived. The trait registration is against AbstractVerticalGrid.

Visualization

Stretched vertical levels
12 stretched vertical levels — sigma-like spacing, dense near the surface and sparse aloft.

Trait coverage

AbstractVerticalGrid. Implements cell_centers, cell_widths, neighbor_indices over the single vertical axis.

See also