1 subroutine da_qfrmrh ( p, t, rh, q )
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 real, intent(in) :: p, t, rh
10 real, intent(out) :: q
14 if (trace_use) call da_trace_entry("da_qfrmrh")
18 if (t <= 263.0) a=21.87
19 if (t <= 263.0) b= 7.66
20 e = 6.11*exp(a*(t-t_triple)/(t-b))
21 qs = 0.622*e/(p-0.378*e)
24 if (trace_use) call da_trace_exit("da_qfrmrh")
26 end subroutine da_qfrmrh