arlmet.z_agl#

arlmet.z_agl(ds)[source]#

Height above ground level (m) at each level.

Parameters:

ds (xr.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 surface pressure and temperature. Requires PRSS and TEMP.

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

Return type:

xr.DataArray