26 SUBROUTINE w3fa01(P,T,RH,TD,PLCL,TLCL)
32 potemp(t,p) = (t+273.16)*((1000./p)**0.2857)
36 vapres(t) = 6.11*exp((17.2694*t)/(t+237.3))
40 IF (rh.LT.100)
GO TO 10
49 ar = alog(rh*0.01)/17.269
50 td = (-237.3*(ar+1.0)*t - ar*237.3**2)/(ar*t+237.3*(ar-1.0))
63 pges = (((cges*(-35.86)+2048.7)/(theta*(7.5-cges)))**3.5)*1000.
68 cges = alog10((pges*w)/(6.11*(0.622+w)))
69 plcl = (((cges*(-35.86)+2048.7)/(theta*(7.5-cges)))**3.5)*1000.
70 IF (abs(plcl-pges) .LT. eps)
GO TO 30
75 tlcl = (cges * 237.3) / (7.5 - cges)
subroutine w3fa01(p, t, rh, td, plcl, tlcl)
Given the pressure, temperature and relative humidity of an air parcel at some point in the atmospher...