arlmet.z_agl#

arlmet.z_agl(ds)[source]#

Height above ground level (m) at each level.

Parameters:

ds (Dataset) – Dataset from arlmet.open_dataset().

Returns:

  • flag=2: HGTS - SHGT (geopotential height minus terrain). Requires HGTS and SHGT in the dataset.

  • flag=1/4: hypsometric integration from the ground through pressure() with the virtual temperature, as HYSPLIT’s prfsig and prfecm do: the ground is at PRSS and T02M (else TMPS, else the first level’s TEMP brought down adiabatically), and the virtual temperature is TEMP (1 + 0.61 q) with q from SPHU, else RELH, else 0. Requires PRSS and TEMP.

  • flag=3: the stored 1D height non-dim coord (level,) — terrain-following levels are heights AGL.

  • flag=5 (WRF): as flag 1 with PRES, as HYSPLIT’s prfsig does for a WRF file without WRF’s hybrid coefficients; the ground temperature without T02M is the first level’s brought down adiabatically from its eta. Requires PRSS, TEMP and PRES.

Return type:

DataArray