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 isearthkit.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
\(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)
Implementations¶
geopotential_from_geometric_height()calls one of the following implementations depending on the type of the input arguments:earthkit.meteo.vertical.array.geopotential_from_geometric_height()for array-likeearthkit.meteo.vertical.xarray.geopotential_from_geometric_height()for xarray.DataArrayearthkit.meteo.vertical.fieldlist.geopotential_from_geometric_height()for FieldList
The function returns an object of the same type as the input arguments.