NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fa04.f
Go to the documentation of this file.
1C> @file
2C> @brief Compute standard pressure, temp, pot temp.
3C> @author James McDonell @date 1974-06-01
4
5C> Computes the standard pressure, temperature, and poten-
6C> tial temperature given the height in meters (<32 km). For
7C> the pressure and temperature the results duplicate the values in
8C> the U.S. standard atmosphere (1962), 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-07-05 Change to ibm vs fortran.
16C> - Ralph Jones 1990-04-27 Change to cray cft77 fortran.
17C>
18C> @param[in] HEIGHT Height in meters.
19C> @param[out] PRESS Standard pressure in millibars.
20C> @param[out] TEMP Temperature in degrees kelvin.
21C> @param[out] THETA Potential temperature in degrees kelvin.
22C>
23C> @note Not valid for heights greater than 32 km. declare all parameters
24C> as type real*4.
25C>
26C> @author James McDonell @date 1974-06-01
27
28 SUBROUTINE w3fa04(HEIGHT,PRESS,TEMP,THETA)
29C
30 REAL M0
31C
32 DATA
33 *g /9.80665/,
34 *rstar /8314.32/,
35 *m0 /28.9644/,
36 *piso /54.7487/,
37 *ziso /20000./,
38 *salp /-.0010/,
39 *tstr /216.65/,
40 *ptrop /226.321/,
41 *alp /.0065/,
42 *t0 /288.15/,
43 *pzero /1013.25/
44C
45 rovcp = 2.0 / 7.0
46 r = rstar/m0
47 IF (height.GT.ziso) GO TO 100
48 IF (height.GT.11000.) GO TO 200
49C
50C COMPUTE IN TROPOSPHERE
51C
52 temp = t0 - height * alp
53 press = pzero * ((1.0 - ((alp/t0) * height)) ** (g/(alp * r)))
54 GO TO 300
55C
56C COMPUTE LAPSE RATE = -.0010 CASES
57C
58 100 CONTINUE
59 d = height - ziso
60 press = piso * ((1.-(( salp /tstr) * d )) ** (g/( salp * r)))
61 temp = tstr - d * salp
62 GO TO 300
63C
64C COMPUTE ISOTHERMAL CASES
65C
66 200 CONTINUE
67 d = exp((height - 11000.0) / ((r / g) * tstr))
68 press = ptrop / d
69 temp = tstr
70C
71 300 CONTINUE
72 theta = temp * ((1000.0 / press) ** rovcp)
73 RETURN
74 END
subroutine w3fa04(height, press, temp, theta)
Computes the standard pressure, temperature, and poten- tial temperature given the height in meters (...
Definition w3fa04.f:29