earthkit.meteo.thermo.temperature_on_moist_adiabat¶
- earthkit.meteo.thermo.temperature_on_moist_adiabat(ept: ArrayLike, p: ArrayLike, ept_method: str = 'ifs', t_method: str = 'bisect') ArrayLike¶
- earthkit.meteo.thermo.temperature_on_moist_adiabat(ept: xarray.DataArray, p: xarray.DataArray, ept_method: str = 'ifs', t_method: str = 'bisect') xarray.DataArray
- earthkit.meteo.thermo.temperature_on_moist_adiabat(ept: earthkit.data.FieldList, p: earthkit.data.FieldList, ept_method: str = 'ifs', t_method: str = 'bisect') earthkit.data.FieldList
Compute the temperature on a moist adiabat (pseudoadiabat).
- Parameters:
ept (
numberorarray-like) – Equivalent potential temperature defining the moist adiabat (K)p (
numberorarray-like) – Pressure on the moist adiabat (Pa)ept_method (
str, optional) – Specifies the computation method that was used to computeept. The possible values are: “ifs”, “bolton35”, “bolton39”. (Seeept_from_dewpoint()for details.)t_method (
str, optional) –Specifies the iteration method along the moist adiabat to find the temperature for the given
ppressure. The possible values are as follows:”bisect”: a bisection method is used as defined in [Stipanuk1973]
”newton”: Newtons’s method is used as defined by Eq (2.6) in [DaviesJones2008]. For extremely hot and humid conditions (
ept> 800 K) depending onept_methodthe computation might not be carried out and nan will be returned.
- Returns:
Temperature on the moist adiabat (K). For values where the computation cannot be carried out nan is returned.
- Return type:
numberorarray-like
Implementations¶
temperature_on_moist_adiabat()calls one of the following implementations depending on the type of the input arguments:earthkit.meteo.thermo.array.temperature_on_moist_adiabat()for array-likeearthkit.meteo.thermo.xarray.temperature_on_moist_adiabat()for xarray.DataArrayearthkit.meteo.thermo.fieldlist.temperature_on_moist_adiabat()for FieldList
The function returns an object of the same type as the input arguments.