metar_print {pmetar} | R Documentation |
Decode and print METAR report
Description
Extract, parse and print information from a single METAR weather report.
Usage
metar_print(
x,
metric = TRUE,
altimeter = FALSE,
numeric_only = FALSE,
check = TRUE,
sep = ";"
)
Arguments
x |
character vector; a single METAR weather report. |
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
Function prints below decoded METAR weather report elements:
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 (m/s or kn)
Gust (m/s or kn)
Wind shear
Wind direction (degrees)
Temperature (Celsius degrees)
Dew point (Celsius degrees)
Pressure (hPa or mmHg)
Pressure unit (hPa or mmHg)
Visibility (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
Examples
metar_print("EPWA 281830Z 18009KT 140V200 9999 SCT037 03/M01 Q1008 NOSIG")
metar_print("CYUL 281800Z 13008KT 30SM BKN240 01/M06 A3005 RMK CI5 SLP180",
altimeter = TRUE, metric = FALSE)
metar_print("201711271930 METAR LEMD 271930Z 02002KT CAVOK 04/M03 Q1025")
metar_print("CYUL 281800Z 13008KT 30SM BKN240 01/M06 A3005", altimeter = TRUE)
metar_print("CYWG 172000Z 30015G25KT 3/4SM R36/4000FT/D -SN M05/M08 A2992")
metar_print("202103251800 METAR COR NFTL 251800Z 00000KT SCT017TCU BKN290 25/25 Q1014")