18 October 1995

Finding the pressure at specified height levels,

given (T or q) and (Td or w)

by

Chuck Doswell

NOAA, National Severe Storms Laboratory

A. Given T and Td:

Suppose we are given values of the temperature, T, and the dewpoint, Td, at some set of specified height levels. We have the following relationships. The Hydrostatic Equation is:

,

where p denotes pressure, r denotes density, z denotes height, and g is the acceleration due to gravity. The Equation of State for moist air is:

,

where Rd is the gas constant for dry air and Tv is the virtual temperature, defined by

,

where e is a constant (= 0.6217 for w in grams per gram) and w is the mixing ratio found from

,

where e is the vapor pressure, given by

where T is given in deg C, and this last relationship is more or less empirical.

 

For the record, if we knew es somehow and we wished to know Td (in deg C), we would have to invert this empirical relationship, to find that

Also, if we have w and wish to know e, then we invert the equation for w to find

.

Returning to our problem, which is to find the pressure at the given height levels, one needs the density. To know the density, one must have the virtual temperature. To know the virtual temperature, one must have the mixing ratio. To know the mixing ratio, one must have the vapor pressure and the pressure. The relationship between pressure and the input variables (T,Td) appears to be implicit, thereby requiring iteration. However, in fact, it can be solved approximately as a differential equation, in what will turn out to be a familiar-looking way.

 

We begin with the Hydrostatic Equation combined with the Equation of State:

Substitution from the definition of virtual temperature gives

Next, we substitute for the mixing ratio

Now, consider the term in brackets:

Substitution into the preceding result gives

This simplifies to

Therefore, the differential equation can be written in two terms:

The first term is a simple computation of the height change associated with the temperature without a virtual correction, and the second term is a correction term. Integration of the first term (replacing "d" with "d" where d denotes a finite difference) gives a familiar expression (recall the Hypsometric Equation):

,

or, put another way:

(1)

where the overbar denotes an average of T over the interval dz. In doing this "integration," the value of p used is that at the bottom of the z-layer. In principle, one could refine this via an iteration process (in effect confirming the implicit nature of the relationship), using the new top value to find an average value for p in the layer and recalculating the correction using the average value, and thereafter iterating with the average. I have tested this using an "artificial sounding" with dz increments of 50 m ... such an exercise may be fun for the reader to try ... and the correction made to dp converges quite rapidly to zero, as can be seen in the following table.


Table 1. Illustrating the convergence of the iteration process described in the text using formula (1).

pressure used in (1)

dp for this pressure

successive dp diffs

diff: initial-final

1000 mb

-5.54756

997.22622 mb

-5.5321723

0.01538771

0.01538771

997.233914 mb

-5.532215

-0.0004268

0.01534503

997.233893 mb

-5.5322149

1.1839x10-7

0.01534515

997.233893 mb

-5.5322149

-3.284x10-10

0.01534515

997.233893 mb

-5.5322149

9.1127x10-13

0.01534515

997.233893 mb

-5.5322149

-2.665x10-15

0.01534515

The difference in dp after the first iteration is of order 0.01mb, and the difference between the inital value and the final value doesn't change much with more iterations. The answer to which the iteration converges differs only by slightly less than 0.3% from the original value (0.0153415 divided by 5.54756), so the correction should be virtually negligible for many practical purposes. If really accurate solutions are desired, then this correction might be worthwhile. Note that the accuracy should increase as one goes upward, because p will be decreasing and, hence, its relative contribution to (dp)1 is decreasing.

 

The second term accounting for the contribution of water vapor looks a bit different:

(2)

This second order correction does not require a p-value and so, presumably, does not require iteration. The values turn out to be quite small ... of order 0.1-0.01 mb, even when using a relatively large moisture content. Simple order-of-magnitude arguments should convince the reader that this is a small correction.

 

Thus, one can find the pressure from the input values numerically, assuming that the simple average gives a good representation to the integrals of T and es over the height interval; if these functions are linear in z over the height interval, then the average is exact (recall the Mean Value Theorem). The pressure is found by starting at the bottom and working up, assuming that the pressure at the lowest level is given. At the ith pressure level, then

. (3)

Note that the averaging is between levels (i) and (i-1).

 

 

B. Given T and w:

Now suppose that rather than the dewpoint, one is given the mixing ratio, w. In this case, we return to

This can be used to find Tv directly, and the problem them becomes the much easier one of

,

or put in the same way as (1) above:

(4)

with no correction term needed. As with (1), since a p-value is needed, the use of the value at the bottom of the layer is not quite appropriate, and iteration could refine this somewhat. Thus, at the ith pressure level,

. (5)

 

C. Given q and w:

As a final kicker, suppose we are given q and w, where we have the definition of potential temperature:

,

with po usually selected to be 1000 mb. In this case, we have to back out the pressure in a quite different way. First of all, we use the obvious relationship

,

in the Equation of State, so the Hydrostatic Equation now reads

Note that we have defined qv analogously to Tv:

.

Now, doing a little rearranging of terms, our hydrostatic equation reads

Hence, our solution looks like

(6)

At the risk of repetition, a p-value is needed here, so using the value at the bottom of the layer is only an approximation. The quality of that approximation is considered in Table 2, below.


Table 2. Illustrating the convergence of the iteration process described in the text using formula (6); "0*" denotes a value of zero to the accuracy of the computations, which is somewhat greater than the number of digits shown in the table.

pressure used in (1)

dp for this pressure

successive dp diffs

diff: initial-final

1000 mb

-5.46827066

997.268565 mb

-5.46827066

0.0053385

0.0053385

997.268534 mb

-5.46293732

-5.2129x10-6

0.0053333

997.268531 mb

-5.46293732

5.09x10-9

0.0053333

997.268531 mb

-5.46293732

-4.9685x10-12

0.0053333

997.268531 mb

-5.46293732

4.441x10-15

0.0053333

997.268531 mb

-5.46293732

0*

0.0053333

In comparison with the results using formula (1), Table 2 shows that the convergence is even more rapid than shown in Table 1. The convergence is virtually complete after the second iteration. Obviously, this confirms the notion that iteration is not a very useful improvement, especially for this type of initial data specification (q and w); the change is only about 0.1% (0.0053333 divided by 5.46827066) in this case. The reason that this calculation is slightly more accurate even with the bottom pressure than that using (1) is because it depends on p1-k instead of p. At the ith pressure level, one has what should be by now a familiar expression:

. (7)