-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Altitude-based correction for O2.sat #103
Comments
I have been always unclear on what the t to use in the altitude to pressure conversion. For sure it is NOT water temperature, as surface water has nothing to do with this conversion. bpcalc<- function(bpst, alt, temp) { This is essentially the barometric formula Bob On Aug 28, 2015, at 10:31 AM, Alison Appling <notifications@github.commailto:notifications@github.com> wrote: We're discussing the pressure-based correction in Issue #102#102, so this issue is just about altitude. The literature gives a few ways to correct O2.sat for barometric pressure. In general, these follow the form: O2.sat.corrected = O2.sat(from garcia, weiss, etc.) * press.cor where the form of press.cor is what varies. Staehr et al. 2010 cite USGS memos #81#81 and #81#81 (both 1981) for these two options: press.corr <- (baro * 0.0987 - 0.0112)/100 # baro is pressure in millibars I cannot find the altitude-based equation or the words 'altitude' or 'elevation' anywhere in USGS memo #81#81. If anybody finds the original source of this equation, I'd like to add it to the help file. Alternatively, I do have the following code from @robohallhttps://github.com/robohall to estimate barometric pressure from elevation. Bob cites John Colt's book (I assume this is an edition of Colt, John. “1 - Solubility of Atmospheric Gases in Freshwater.” In Computation of Dissolved Gas Concentration in Water as Functions of Temperature, Salinity and Pressure (Second Edition), edited by John Colt, 1–71. London: Elsevier, 2012. http://www.sciencedirect.com/science/article/pii/B9780124159167000012). The numbers are also consistent with http://psas.pdx.edu/RocketScience/PressureAltitude_Derived.pdf. temp is degC, alt is m, and bpst is in inches of Hg. Temp is usually relative to a standard, 15 degC. value returned is mmHgbpcalc<- function(bpst, alt, temp) { With this equation, we could relate the pressure correction to altitude by first calculating pressure from altitude and then computing the pressure correction from pressure as before. Here are the equations I propose (note that I've replaced bpst with 29.92 inches Hg in the following calculation because that's the standard pressure at sea level): Pmb = (1/0.750061683) * 25.4 * 29.92 * exp((-9.80665_0.0289644_altitude)/(8.31447*(273.15 + t))) same equations as in issue #102:u = 10 ^ (8.10765 - 1750.286 / (235 + t)) # t is temperature in degrees C, log appears to be log10 As with the Antoine equation for u (see Issue #102#102), I'm unclear on the value to use for temperature (t) in the Pmb equation. Should it be local air temperature, local water temperature, or standard air temperature (15 deg C)? @robohallhttps://github.com/robohall, @lawinslowhttps://github.com/lawinslow, @rBatthttps://github.com/rBatt — |
Great - I'd like to go with a temperature of 15 degrees C. I've found a little more information to support this: see p12 of http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770009539.pdf. There it says, "The quantity T[M,b] is a multi-valued constant dependent on L[M,b] and H[b]." L[M,b] is the standard temperature lapse rate that's absent from wikipedia's Eq. 2, H[b] is the altitude, and b is the index of altitude used in Table 4 of that document. Note that both P[b] and T[M,b] are indexed by b, and the text next says, "The reference-level value for P[b] for b=0 is the defined sea-level value, P0=101325.0 N/m2." So I think the reference-level value for T[M,b] is also the defined sea-level value of 288.15 K = 15 degrees C. |
Yup, go with 288.15K; more support of this in Jacobs 1999 Introduction to Atmospheric Chemistry (see equation 2.9 for the barometric equation). And I agree on the indexing of b - but I don't think any lakes or streams will be above this bottom atmospheric layer so no need to include a lookup table for any of the other atmospheric layers, so we can keep these as constants as in Bob's code. see https://en.wikipedia.org/wiki/U.S._Standard_Atmosphere#1976_version for other layer values. |
Yup, go with 288.15K; more support of this in Jacobs 1999 Introduction to On Fri, Aug 28, 2015 at 1:52 PM, Alison Appling notifications@github.com
Jacob A. Zwart |
We're discussing the pressure-based correction in Issue #102, so this issue is just about altitude.
The literature gives a few ways to correct O2.sat for barometric pressure. In general, these follow the form:
where the form of press.cor is what varies. Staehr et al. 2010 cite USGS memos #81.11 and #81.15 (both 1981) for these two options:
I cannot find the altitude-based equation or the words 'altitude' or 'elevation' anywhere in USGS memo #81.11. If anybody finds the original source of this equation, I'd like to add it to the help file.
Alternatively, I do have the following code from @robohall to estimate barometric pressure from elevation. Bob cites John Colt's book (I assume this is an edition of Colt, John. “1 - Solubility of Atmospheric Gases in Freshwater.” In Computation of Dissolved Gas Concentration in Water as Functions of Temperature, Salinity and Pressure (Second Edition), edited by John Colt, 1–71. London: Elsevier, 2012. http://www.sciencedirect.com/science/article/pii/B9780124159167000012). The numbers are also consistent with http://psas.pdx.edu/RocketScience/PressureAltitude_Derived.pdf.
With this equation, we could relate the pressure correction to altitude by first calculating pressure from altitude and then computing the pressure correction from pressure as before.
Here are the equations I propose (note that I've replaced bpst with 29.92 inches Hg in the following calculation because that's the standard pressure at sea level):
As with the Antoine equation for
u
(see Issue #102), I'm unclear on the value to use for temperature (t
) in thePmb
equation. Should it be local air temperature, local water temperature, or standard air temperature (15 deg C)? @robohall, @lawinslow, @rBattThe text was updated successfully, but these errors were encountered: