NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fa01.f
Go to the documentation of this file.
1C> @file
2C> @brief Compute lifting condendsation level.
3C> @author James Howcroft @date 1979-07-01
4
5C> Given the pressure, temperature and relative humidity of
6C> an air parcel at some point in the atmosphere, calculate the
7C> dewpoint temperature and the pressure and temperature of the
8C> lifting condensation level.
9C>
10C> Program history log:
11C> - James Howcroft 1979-07-01
12C> - Ralph Jones 1989-01-24 Change to microsoft fortran 4.10.
13C> - Ralph Jones 1990-06-11 Change to sun fortran 1.3.
14C> - Ralph Jones 1991-03-29 Convert to silicongraphics fortran.
15C> - Ralph Jones 1993-03-29 Add save statement.
16C> - Ralph Jones 1995-09-25 Put in cray w3 library.
17C>
18C> @param[in] P Parcel pressure in millibars.
19C> @param[in] T Parcel temperature in degrees celsius.
20C> @param[in] RH Parcel relative humidity in percent.
21C> @param[out] TD Dewpoint temperature in degrees celsius.
22C> @param[out] PLCL Pressure of LCL in millibars.
23C> @param[out] TLCL Temperature at LCL in degrees celsius.
24C>
25C> @author James Howcroft @date 1979-07-01
26 SUBROUTINE w3fa01(P,T,RH,TD,PLCL,TLCL)
27C
28 SAVE
29C
30C DEFINITION OF THE POTENTIAL TEMPERATURE
31C
32 potemp(t,p) = (t+273.16)*((1000./p)**0.2857)
33C
34C TETENS FORMULA WITH NATURAL BASE
35C
36 vapres(t) = 6.11*exp((17.2694*t)/(t+237.3))
37C
38C BEGIN
39C
40 IF (rh.LT.100) GO TO 10
41 plcl = p
42 tlcl = t
43 td = t
44 GO TO 40
45C
46C CALCULATE DEW POINT FROM RH AND T
47C
48 10 CONTINUE
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))
51 e = vapres(td)
52 w = (0.622*e)/(p-e)
53 theta = potemp(t,p)
54C
55C DO STACKPOLE'S THING AS IN JOUR APPL MET, VOL 6, PP 464-467.
56C
57 eps = 0.1
58 cges = 0.5
59C
60C CONSTANTS -35.86 = 237.30 - 273.16
61C 2048.7 = 273.16 * 7.50
62C
63 pges = (((cges*(-35.86)+2048.7)/(theta*(7.5-cges)))**3.5)*1000.
64C
65C START ITERATION.
66C
67 20 CONTINUE
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
71 pges = plcl
72 GO TO 20
73C
74 30 CONTINUE
75 tlcl = (cges * 237.3) / (7.5 - cges)
76C
77C FALL THRU WITH P,T OF THE LIFTED CONDENSATION LEVEL.
78C
79 40 CONTINUE
80 RETURN
81 END
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...
Definition w3fa01.f:27