Learn R Programming

pmetar (version 0.5.1)

metar_temp: Get temperature.

Description

Extract a temperature value from METAR weather report.

Usage

metar_temp(x, check = FALSE)

Value

a numeric vector with temperature in degrees Celsius.

Arguments

x

character vector; a METAR weather report or reports.

check

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

Examples

Run this code
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")

Run the code above in your browser using DataLab