convert_pressure: Convert pressure data to hPa

Description Usage Arguments Value Author(s) References Examples

View source: R/conversions.R

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

1
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

1
2
3
4
5
6
7
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.

C3S-Data-Rescue-Lot1-WP3/C3S-QC documentation built on Jan. 15, 2020, 10:36 p.m.