earthkit.meteo.thermo.wet_bulb_potential_temperature_from_specific_humidity¶
- earthkit.meteo.thermo.wet_bulb_potential_temperature_from_specific_humidity(t: ArrayLike, q: ArrayLike, p: ArrayLike, ept_method: str = 'ifs', t_method: str = 'direct') ArrayLike¶
- earthkit.meteo.thermo.wet_bulb_potential_temperature_from_specific_humidity(t: xarray.DataArray, q: xarray.DataArray, p: xarray.DataArray, ept_method: str = 'ifs', t_method: str = 'direct') xarray.DataArray
- earthkit.meteo.thermo.wet_bulb_potential_temperature_from_specific_humidity(t: earthkit.data.FieldList, q: earthkit.data.FieldList, p: earthkit.data.FieldList, ept_method: str = 'ifs', t_method: str = 'direct') earthkit.data.FieldList
Compute the pseudo adiabatic wet bulb potential temperature from specific humidity.
- Parameters:
t (
numberorarray-like) – Temperature (K)q (
numberorarray-like) – Specific humidity (kg/kg)p (
numberorarray-like) – Pressure (Pa)ept_method (
str, optional) – Specifies the computation method for the equivalent potential temperature. The possible values are: “ifs”, “bolton35”, “bolton39”. (Seeept_from_dewpoint()for details.)t_method (
str, optional) –Specifies the method to find the temperature along the moist adiabat defined by the equivalent potential temperature. The possible values are as follows:
”direct”: the rational formula defined by Eq (3.8) in [DaviesJones2008] is used
”bisect”:
temperature_on_moist_adiabat()witht_method= “bisect” is used”newton”:
temperature_on_moist_adiabat()witht_method= “newton” is used
- Returns:
Wet bulb potential temperature (K)
- Return type:
numberorarray-like
The computations are the same as in
wet_bulb_potential_temperature_from_dewpoint()(the dewpoint is computed from q withdewpoint_from_specific_humidity()).Implementations¶
wet_bulb_potential_temperature_from_specific_humidity()calls one of the following implementations depending on the type of the input arguments:earthkit.meteo.thermo.array.wet_bulb_potential_temperature_from_specific_humidity()for array-likeearthkit.meteo.thermo.xarray.wet_bulb_potential_temperature_from_specific_humidity()for xarray.DataArrayearthkit.meteo.thermo.fieldlist.wet_bulb_potential_temperature_from_specific_humidity()for FieldList
The function returns an object of the same type as the input arguments.