earthkit.meteo.vertical.geopotential_from_geometric_height

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

Compute the geopotential from geometric height.

Parameters:
  • h (array-like | xarray.DataArray | FieldList) – Geometric height with respect to sea level (m).

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

Returns:

Geopotential (m2/s2).

Return type:

array-like | xarray.DataArray | FieldList

The computation is based on the following formula:

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

where

Implementations

geopotential_from_geometric_height() 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.