Skip to content

Commit

Permalink
note about hydrostatic approximation
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyas committed Sep 26, 2024
1 parent efaabab commit 0133793
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ufs2arco/layers2pressure.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def calc_delz(
temp: xr.DataArray,
spfh: xr.DataArray,
) -> xr.DataArray:
"""Compute layer thickness at each vertical level
"""Compute a hydrostatic approximation of the layer thickness at each vertical level.
Args:
pressfc, temp, spfh (xr.DataArray): surface pressure, temperature, and specific humidity
Expand All @@ -194,6 +194,9 @@ def calc_layer_mean_pressure(
) -> xr.DataArray:
"""Compute pressure at vertical grid cell center (i.e., layer mean)
Note:
If ``delz`` is computed by :meth:`calc_delz`, then a hydrostatic approximation is used. This may be inconsistent with the original simulation/dataset.
Args:
pressfc, temp, spfh, delz (xr.DataArray): surface pressure, temperature, specific humidity, and layer thickness
Expand Down Expand Up @@ -221,6 +224,9 @@ def calc_layer_mean_pressure(
def calc_geopotential(self, hgtsfc: xr.DataArray, delz: xr.DataArray) -> xr.DataArray:
"""Compute geopotential field
Note:
If ``delz`` is computed by :meth:`calc_delz`, then a hydrostatic approximation is used. This may be inconsistent with the original simulation/dataset.
Args:
hgtsfc, delz (xr.DataArray): surface/orographic height, and vertical layer thickness
Expand Down

0 comments on commit 0133793

Please sign in to comment.