metar_pressure: Get atmospheric pressure.

View source: R/metar_pressure.R

metar_pressureR Documentation

Get atmospheric pressure.

Description

Extract and parse an air pressure value from METAR weather report.

Usage

metar_pressure(x, altimeter = FALSE, check = FALSE)

Arguments

x

character vector; a METAR weather report or reports.

altimeter

boolean; if FALSE, the default value, a pressure is returned in hPa, if TRUE a pressure is returned in inHg (inch of mercury).

check

logical; if TRUE the syntax of METAR reports will be checked.

Value

a numeric vector with air pressure in inHg or hPa.

Examples

metar_pressure("EPWA 281830Z 18009KT 140V200 9999 SCT037 03/M01 Q1008 NOSIG")
metar_pressure("CYUL 281800Z 13008KT 30SM BKN240 01/M06 A3005", altimeter = TRUE)
metar_pressure("201711271930 METAR LEMD 271930Z 02002KT CAVOK 04/M03 Q1025 NOSIG= NOSIG=")


pmetar documentation built on Oct. 26, 2023, 1:08 a.m.