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