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 (number or array-like) – Temperature (K)

  • q (number or array-like) – Specific humidity (kg/kg)

  • p (number or array-like) – Pressure (Pa)

  • method (str, optional) – Specify the computation method. The possible values are: “ifs”, “bolton35”, “bolton39”, “bolton43”. See ept_from_dewpoint() for details.

Returns:

Equivalent potential temperature (K)

Return type:

number or array-like

The computations are the same as in ept_from_dewpoint() (the dewpoint is computed from q with dewpoint_from_specific_humidity()).

Implementations

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