earthkit.meteo.vertical.geometric_height_from_geopotential

earthkit.meteo.vertical.geometric_height_from_geopotential(z: ArrayLike, R_earth: float = constants.R_earth) ArrayLike
earthkit.meteo.vertical.geometric_height_from_geopotential(z: xarray.DataArray, R_earth: float = constants.R_earth) xarray.DataArray
earthkit.meteo.vertical.geometric_height_from_geopotential(z: earthkit.data.FieldList, R_earth: float = constants.R_earth) earthkit.data.FieldList

Compute the geometric height from geopotential.

Parameters:
  • z (array-like | xarray.DataArray | FieldList) – Geopotential (m2/s2).

  • R_earth (float, optional) – Average radius of the Earth (m). Default is earthkit.meteo.constants.R_earth.

Returns:

Geometric height (m).

Return type:

array-like | xarray.DataArray | FieldList

The computation is based on the following formula:

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

where

Implementations

geometric_height_from_geopotential() calls one of the following implementations depending on the type of the input arguments:

The function returns an object of the same type as the input arguments.