convert_pressure {dataresqc}R Documentation

Convert pressure data to hPa

Description

Converts pressure observations made with a mercury barometer to SI units. If geographical coordinates are given, a gravity correction is applied. If attached temperature is given, a temperature correction is applied.

Usage

convert_pressure(p, f = 1, lat = NA, alt = NA, atb = NULL)

Arguments

p

A numerical vector of barometer observations in any unit of length.

f

Conversion factor to mm (e.g., 25.4 for English inches).

lat

Station latitude (degrees North in decimal).

alt

Station altitude (metres). Assumed zero if not given. Ignored if lat is NA.

atb

A vector of the attached temperature observations in Celsius.

Value

A numerical vector of pressure values in hPa.

Author(s)

Yuri Brugnara

References

WMO, 2008: Guide to meteorological instruments and methods of observation, WMO-No. 8, World Meteorological Organization, Geneva.

Examples

convert_pressure(760) # Gives a standard pressure of 1013.25 hPa

convert_pressure(760, lat=70, alt=100) # Gives a higher pressure because of higher g

convert_pressure(760, lat=70, alt=100, atb=20) # Gives a lower pressure because the
                                               # temperature correction is larger than 
                                               # the gravity correction.


[Package dataresqc version 1.1.1 Index]