Learn R Programming

rMR (version 1.1.0)

Barom.Press: Estimate Barometric Pressure

Description

Function to estimate barometric pressure based on altitude.

Usage

Barom.Press(elevation.m, units = "atm")

Arguments

elevation.m

Elevation in meters above sea level.

units

Output units for barometric pressure must be one of: "atm", "kpa", or "mmHg".

Value

Returns numeric object of barometric pressure in specified units.

Details

This is just a simple conversion function. Plug and chug, as they say...

References

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.

Examples

Run this code
# 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