Compute the water vapor mixing ratio qv as a function of the specific humidity sh.
Essentially, .
(KCW, 2025-07-21)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | sh |
pure elemental function qv_of_sh(sh) result(qv) use, intrinsic :: iso_fortran_env, only: real64 real(real64), intent(in) :: sh real(real64) :: qv qv = sh / (1.0_real64 - sh) end function qv_of_sh