arlmet.pressure#

arlmet.pressure(ds)[source]#

Pressure (hPa) at each level.

Parameters:

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

Returns:

  • flag=2: the stored 1D pressure non-dim coord (level,).

  • flag=1/4: spatially varying array (time, level, y, x) computed from surface pressure (PRSS) via sigma-to-pressure conversion.

  • flag=3: returns the PRES data variable (3D pressure field in hPa) if present in the dataset. Terrain-following ARL files typically store this field. Raises ValueError if PRES is absent.

Return type:

xr.DataArray