earthkit.meteo.thermo.ept_from_specific_humidity¶
- earthkit.meteo.thermo.ept_from_specific_humidity(t: ArrayLike, q: ArrayLike, p: ArrayLike, method: str = 'ifs') ArrayLike¶
- earthkit.meteo.thermo.ept_from_specific_humidity(t: xarray.DataArray, q: xarray.DataArray, p: xarray.DataArray, method: str = 'ifs') xarray.DataArray
- earthkit.meteo.thermo.ept_from_specific_humidity(t: earthkit.data.FieldList, q: earthkit.data.FieldList, p: earthkit.data.FieldList, method: str = 'ifs') earthkit.data.FieldList
Compute the equivalent potential temperature from specific humidity.
- Parameters:
t (
numberorarray-like) – Temperature (K)q (
numberorarray-like) – Specific humidity (kg/kg)p (
numberorarray-like) – Pressure (Pa)method (
str, optional) – Specify the computation method. The possible values are: “ifs”, “bolton35”, “bolton39”, “bolton43”. Seeept_from_dewpoint()for details.
- Returns:
Equivalent potential temperature (K)
- Return type:
numberorarray-like
The computations are the same as in
ept_from_dewpoint()(the dewpoint is computed from q withdewpoint_from_specific_humidity()).Implementations¶
ept_from_specific_humidity()calls one of the following implementations depending on the type of the input arguments:earthkit.meteo.thermo.array.ept_from_specific_humidity()for array-likeearthkit.meteo.thermo.xarray.ept_from_specific_humidity()for xarray.DataArrayearthkit.meteo.thermo.fieldlist.ept_from_specific_humidity()for FieldList
The function returns an object of the same type as the input arguments.