metar_temp: Get temperature.

View source: R/metar_temp.R

metar_tempR Documentation

Get temperature.

Description

Extract a temperature value from METAR weather report.

Usage

metar_temp(x, check = FALSE)

Arguments

x

character vector; a METAR weather report or reports.

check

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

Value

a numeric vector with temperature in degrees Celsius.

Examples

metar_temp("EPWA 281830Z 18009KT 140V200 9999 SCT037 03/M01 Q1008 NOSIG")
metar_temp("CYUL 281800Z 13008KT 30SM BKN240 01/M06 A3005 RMK CI5 SLP180")
metar_temp("201711271930 METAR LEMD 271930Z 02002KT CAVOK 04/M03 Q1025 NOSIG=")
metar_temp("METAR KEWR 010851Z 27010KT 10SM BKN210 04/M03 A2969 RMK SLP054
T00391033 52012")


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