powered by
Function to estimate barometric pressure based on altitude.
Barom.Press(elevation.m, units = "atm")
Elevation in meters above sea level.
Output units for barometric pressure must be one of: "atm", "kpa", or "mmHg".
"atm"
"kpa"
"mmHg"
Returns numeric object of barometric pressure in specified units.
This is just a simple conversion function. Plug and chug, as they say...
Mechtly, E. A., 1973: The International System of Units, Physical Constants and Conversion Factors. NASA SP-7012, Second Revision, National Aeronautics and Space Administration, Washington, D.C. https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19730018242.pdf.
U.S. Geological Survey (2011). Change to solubility equations for oxygen in water: Office of Water Quality Technical Memorandum 2011.03, accessed July 15, 2011, at http://water.usgs.gov/admin/memo/QW/qw11.03.pdf.
# NOT RUN { bar.pressure1 <- Barom.Press(elevation.m = 1000) # returns "atm" bar.pressure2 <- Barom.Press(elevation.m = 1000, "kpa") bar.pressure3 <- Barom.Press(elevation.m = 1000, "mmHg") # }
Run the code above in your browser using DataLab