metar_decode {pmetar} | R Documentation |
Decode METAR report.
Description
Extract and parse information from a single METAR weather report or several reports.
Usage
metar_decode(
x,
metric = TRUE,
altimeter = FALSE,
numeric_only = FALSE,
check = TRUE,
sep = ";"
)
Arguments
x |
character vector; a single METAR weather report or |
metric |
logical; if TRUE wind speeds returned in m/s, distances in meters. |
altimeter |
logical; if FLASE pressures returned in hPa, if TRUE in mmHg. |
numeric_only |
logical; if TRUE only numeric values are returned. |
check |
logical; if TRUE the syntax of METAR reports will be checked and incorrect reports will be omitted. If FALSE, the incorrect syntax of reports can cause errors and breakdown of decoding. The default value is TRUE. |
sep |
character; comma or semicolon, used for separating decoded elements of weather conditions information. The default value is ";". |
Details
Decoded METAR weather report consists of:
Remark: Don't use for flight planning or navigation! or Incorrect METAR report! Please check the column Original_METAR.
Airport ICAO
Day of Month
Hour (HH:mm)
Time zone
Wind speed
Wind speed unit (m/s or kn)
Gust
Gust unit (m/s or kn)
Wind shear
Wind direction (degrees)
Temperature (Celsius degrees)
Dew point (Celsius degrees)
Pressure (hPa)
Pressure unit (hPa or mmHg)
Visibility
Visibility unit (m or miles)
Cloud coverage
Weather conditions information from WX codes
Runway visibility (m or feet)
Airport Name
Longitude
Latitude
Elevation
Decode Date
Original METAR text
Value
a tibble with decoded METAR weather report or reports.
Examples
metar_decode("EPWA 281830Z 18009KT 140V200 9999 SCT037 03/M01 Q1008 NOSIG")
metar_decode("CYUL 281800Z 13008KT 30SM BKN240 01/M06 A3005 RMK CI5 SLP180",
altimeter = TRUE, metric = FALSE)
metar_decode("201711271930 METAR LEMD 271930Z 02002KT CAVOK 04/M03 Q1025")
metar_decode("CYUL 281800Z 13008KT 30SM BKN240 01/M06 A3005", altimeter = TRUE)
metar_decode("CYWG 172000Z 30015G25KT 3/4SM R36/4000FT/D -SN M05/M08 A2992")
metar_decode("202103251800 METAR COR NFTL 251800Z 00000KT SCT017TCU BKN290 25/25 Q1014")