earthkit.meteo.vertical.array.geometric_height_from_geopotential
- earthkit.meteo.vertical.array.geometric_height_from_geopotential(z, R_earth=constants.R_earth)
Compute the geometric height from geopotential.
- Parameters:
z (
array-like) – Geopotential (m2/s2)R_earth (
float, optional) – Average radius of the Earth (m)
- Returns:
Geometric height (m)
- Return type:
array-like
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
meteo.constants.R_earth)\(g\) is the gravitational acceleration on the surface of the Earth (see
meteo.constants.g)