earthkit.meteo.thermo.fieldlist.ept_from_specific_humidity¶
- earthkit.meteo.thermo.fieldlist.ept_from_specific_humidity(t, q, p=None, method='ifs')¶
Compute the equivalent potential temperature from specific humidity.
- Parameters:
t (
FieldList|Field) – Temperature (K).q (
FieldList|Field) – Specific humidity (kg/kg).p (
FieldList|Field|Iterable[float]|float|None) – Pressure (Pa). If None, inferred from the field metadata oft. Otherwise, iftis a FieldListpmust be a FieldList or an array-like of the same length ast. Iftis a Field,pmust be a single Field or a float.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). The result has the same type as the input
tandq(FieldList or Field).- Return type:
FieldList|Field
The computations are the same as in
ept_from_dewpoint()(the dewpoint is computed from q withdewpoint_from_specific_humidity()).