NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fa03.f
Go to the documentation of this file.
1C> @file
2C> @brief Compute standard height, temp, and pot temp.
3C> @author James McDonell @date 1974-06-01
4
5C> Computes the standard height, temperature, and potential
6C> temperature given the pressure in millibars ( > 8.68 mb ). For
7C> height and temperature the results duplicate the values in the
8C> U.S. standard atmosphere (l962), which is the icao standard
9C> atmosphere to 54.7487 mb (20 km) and the proposed extension to
10C> 8.68 mb (32 km). For potential temperature a value of 2/7 is
11C> used for rd/cp.
12C>
13C> Program history log:
14C> - James McDonell 1974-06-01
15C> - Ralph Jones 1984-06-01 Change to ibm vs fortran.
16C> - Dennis Keyser 1992-06-29 Convert to cray cft77 fortran.
17C>
18C> @param[in] PRESS Pressure in millibars.
19C> @param[out] HEIGHT Height in meters.
20C> @param[out] TEMP Temperature in degrees kelvin.
21C> @param[out] THETA Potential temperature in degrees kelvin.
22C>
23C> @note Not valid for pressures less than 8.68 millibars, declare
24C> all parameters as type real.
25C>
26C> @author James McDonell @date 1974-06-01
27 SUBROUTINE w3fa03(PRESS,HEIGHT,TEMP,THETA)
28C
29 REAL M0
30C
31 SAVE
32C
33 DATA g/9.80665/,rstar/8314.32/,m0/28.9644/,piso/54.7487/,
34 $ ziso/20000./,salp/-.0010/,pzero/1013.25/,t0/288.15/,alp/.0065/,
35 $ ptrop/226.321/,tstr/216.65/
36C
37 rovcp = 2.0/7.0
38 r = rstar/m0
39 rovg = r/g
40 fkt = rovg * tstr
41 ar = alp * rovg
42 pp0 = pzero**ar
43 IF(press.LT.piso) GO TO 100
44 IF(press.GT.ptrop) GO TO 200
45C
46C COMPUTE ISOTHERMAL CASES
47C
48 height = 11000.0 + (fkt * alog(ptrop/press))
49 temp = tstr
50 GO TO 300
51C
52C COMPUTE LAPSE RATE = -.0010 CASES
53C
54 100 CONTINUE
55 ar = salp * rovg
56 pp0 = piso**ar
57 height = ((tstr/(pp0 * salp )) * (pp0-(press ** ar))) + ziso
58 temp = tstr - ((height - ziso) * salp)
59 GO TO 300
60C
61 200 CONTINUE
62 height = (t0/(pp0 * alp)) * (pp0 - (press ** ar))
63 temp = t0 - (height * alp)
64C
65 300 CONTINUE
66 theta = temp * ((1000./press)**rovcp)
67 RETURN
68 END
subroutine w3fa03(press, height, temp, theta)
Computes the standard height, temperature, and potential temperature given the pressure in millibars ...
Definition w3fa03.f:28