arlmet.pressure#
- arlmet.pressure(ds)[source]#
Pressure (hPa) at each level.
- Parameters:
ds (
Dataset) – Dataset fromarlmet.open_dataset().- Returns:
flag=2: the stored 1D
pressurenon-dim coord(level,).flag=1 (sigma): the
PRESdata variable when the dataset has it, as HYSPLIT’sprfsiguses it; otherwise, as for flag 4, a spatially varying array(time, level, y, x)computed from surface pressure (PRSS) via sigma-to-pressure conversion.flag=4 (hybrid): computed from
PRSSand the stored levels;PRESis not used, as in HYSPLIT’sprfecm.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.flag=5 (WRF): returns the
PRESdata variable, as HYSPLIT’sprfwrfdoes; WRF’s hybrid levels need coefficients the file does not store. RaisesValueErrorifPRESis absent.
- Return type: