ufs2arco.Layers2Pressure.calc_layer_mean_pressure#
- Layers2Pressure.calc_layer_mean_pressure(pressfc: DataArray, temp: DataArray, spfh: DataArray, delz: DataArray) DataArray#
Compute pressure at vertical grid cell center (i.e., layer mean)
Note
If
delzis computed bycalc_delz(), then a hydrostatic approximation is used. This may be inconsistent with the original simulation/dataset.- Parameters:
pressfc (xr.DataArray) – surface pressure, temperature, specific humidity, and layer thickness
temp (xr.DataArray) – surface pressure, temperature, specific humidity, and layer thickness
spfh (xr.DataArray) – surface pressure, temperature, specific humidity, and layer thickness
delz (xr.DataArray) – surface pressure, temperature, specific humidity, and layer thickness
- Returns:
prsl (xr.DataArray) – layer mean thickness