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
pressurenon-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
PRESdata variable (3D pressure field in hPa) if present in the dataset. Terrain-following ARL files typically store this field. RaisesValueErrorifPRESis absent.
- Return type:
xr.DataArray