NCEPLIBS-w3emc  2.11.0
w3fa03.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Compute standard height, temp, and pot temp.
3 C> @author James McDonell @date 1974-06-01
4 
5 C> Computes the standard height, temperature, and potential
6 C> temperature given the pressure in millibars ( > 8.68 mb ). For
7 C> height and temperature the results duplicate the values in the
8 C> U.S. standard atmosphere (l962), which is the icao standard
9 C> atmosphere to 54.7487 mb (20 km) and the proposed extension to
10 C> 8.68 mb (32 km). For potential temperature a value of 2/7 is
11 C> used for rd/cp.
12 C>
13 C> Program history log:
14 C> - James McDonell 1974-06-01
15 C> - Ralph Jones 1984-06-01 Change to ibm vs fortran.
16 C> - Dennis Keyser 1992-06-29 Convert to cray cft77 fortran.
17 C>
18 C> @param[in] PRESS Pressure in millibars.
19 C> @param[out] HEIGHT Height in meters.
20 C> @param[out] TEMP Temperature in degrees kelvin.
21 C> @param[out] THETA Potential temperature in degrees kelvin.
22 C>
23 C> @note Not valid for pressures less than 8.68 millibars, declare
24 C> all parameters as type real.
25 C>
26 C> @author James McDonell @date 1974-06-01
27  SUBROUTINE w3fa03(PRESS,HEIGHT,TEMP,THETA)
28 C
29  REAL M0
30 C
31  SAVE
32 C
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/
36 C
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
45 C
46 C COMPUTE ISOTHERMAL CASES
47 C
48  height = 11000.0 + (fkt * alog(ptrop/press))
49  temp = tstr
50  GO TO 300
51 C
52 C COMPUTE LAPSE RATE = -.0010 CASES
53 C
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
60 C
61  200 CONTINUE
62  height = (t0/(pp0 * alp)) * (pp0 - (press ** ar))
63  temp = t0 - (height * alp)
64 C
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