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