metar_dir: Get wind direction.

View source: R/metar_dir.R

metar_dirR Documentation

Get wind direction.

Description

Extract a wind direction value from METAR weather report.

Usage

metar_dir(x, numeric_only = FALSE, check = FALSE)

Arguments

x

character vector; a METAR weather report or reports.

numeric_only

logical; the default value is FALSE and information about variability will be included. If TRUE only a numeric value of direction will be returned.

check

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

Value

a numeric vector with a wind direction in degrees.

Examples

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


prcwiek/pmetar documentation built on Oct. 28, 2023, 1:12 a.m.