View source: R/derived_values.R
sea_level_pressure | R Documentation |
Estimate sea level pressure from local pressure, temperature, and height using the barometric formula.
sea_level_pressure(press, temp, height)
press |
Pressure in millibars. |
temp |
Temperature in Celsius. |
height |
Height above sea level in meters. |
We estimate the sea level pressure using the barometric formula,
P = P0 (T0/T)^(Mg / (Rstar L))
where P is pressure, T is temperature (in Kelvin), H is height, and L is the temperature lapse rate. Variables with subscript 0 are the same at sea level. Substituting T0 = T - LH, we can solve for P0 in terms of pressure, temperature, and height:
P0 = P (T/(T - LH))^(Mg/(Rstar L))
The values of physical constants are taken from \insertCitecoesa_us_1976;textualatmoschem.process:
-.0065 K/m
0.0289644 kg/mol
9.80665 m/s^2
8.31432 J/(mol K)
Estimated sea level pressure.
# estimate sea level pressure at the Whiteface Mountain summit sea_level_pressure(800, 30, 1483.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.