earthkit.meteo.vertical.geometric_height_from_geopotential_height¶
- earthkit.meteo.vertical.geometric_height_from_geopotential_height(gh: ArrayLike, R_earth: float = constants.R_earth) ArrayLike¶
- earthkit.meteo.vertical.geometric_height_from_geopotential_height(gh: xarray.DataArray, R_earth: float = constants.R_earth) xarray.DataArray
- earthkit.meteo.vertical.geometric_height_from_geopotential_height(gh: earthkit.data.FieldList, R_earth: float = constants.R_earth) earthkit.data.FieldList
Compute the geometric height from geopotential height.
- Parameters:
gh (
array-like | xarray.DataArray | FieldList) – Geopotential height (m).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 gh}{R_{earth} - gh}\]where \(R_{earth}\) is the average radius of the Earth (see
earthkit.meteo.constants.R_earth).Implementations¶
geometric_height_from_geopotential_height()calls one of the following implementations depending on the type of the input arguments:earthkit.meteo.vertical.array.geometric_height_from_geopotential_height()for array-likeearthkit.meteo.vertical.xarray.geometric_height_from_geopotential_height()for xarray.DataArrayearthkit.meteo.vertical.fieldlist.geometric_height_from_geopotential_height()for FieldList
The function returns an object of the same type as the input arguments.