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
\(R_{earth}\) is the average radius of the Earth (see
earthkit.meteo.constants.R_earth)\(g\) is the gravitational acceleration on the surface of the Earth (see
earthkit.meteo.constants.g)