earthkit.meteo.thermo.array.ept_from_specific_humidity

earthkit.meteo.thermo.array.ept_from_specific_humidity(t, q, p, method='ifs')

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