Compute the temperature t
as a function of the modified moist temperature tm
and the water vapor mixing ratio qv
.
Essentially, . This modified "moist" temperature is described herein:
The paragraph below equation 2.7 in doi:10.5065/1DFH-6P97.
The paragraph below equation 2 in doi:10.1175/MWR-D-11-00215.1.
Similarly, it can be shown that the relation, , also holds.
(KCW, 2025-07-10)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | constant_rd | |||
real(kind=real64), | intent(in) | :: | constant_rv | |||
real(kind=real64), | intent(in) | :: | tm | |||
real(kind=real64), | intent(in) | :: | qv |
pure elemental function t_of_tm_qv(constant_rd, constant_rv, tm, qv) result(t) use, intrinsic :: iso_fortran_env, only: real64 real(real64), intent(in) :: constant_rd, constant_rv, tm, qv real(real64) :: t t = tm / (1.0_real64 + constant_rv / constant_rd * qv) end function t_of_tm_qv