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