earthkit.meteo.vertical.xarray.geometric_height_from_geopotential

earthkit.meteo.vertical.xarray.geometric_height_from_geopotential(z, R_earth=constants.R_earth)

Compute the geometric height from geopotential.

Parameters:
  • z (xr.DataArray) – Geopotential (m2/s2)

  • R_earth (float) – Average radius of the Earth (m)

Returns:

Geometric height (m)

Return type:

xr.DataArray

The computation is based on the following formula:

\[h = \frac{R_{earth} \frac{z}{g}}{R_{earth} - \frac{z}{g}}\]

where