script variables method used to obtain METAR string $phetar['meth'] time to complete parsing $phetar['codetime'] station variables METAR station ICAO code $phetar['station'] time that METAR string was produced (UTC, 24h) $phetar['time'] station name $phetar['name'] state (US only) $phetar['state'] country where station is located $phetar['country'] latitude in DD-MM-(SS)?[N|S] $phetar['latitude'] longitude in DDD-MM-(SS)?[E|W] $phetar['longitude'] elevation (m) $phetar['elevation'] raw METAR string $phetar['rawdata'] wind variables wind direrction [N|NW|W|SW|S|SE|E|NE|Calm] $phetar['windcompass'] wind speed (MPH) $phetar['windspeed'] wind gust speed (MPH) $phetar['windgust'] weather condition variables text description of conditions $phetar['conditions'] WMO code for amount of sky covered by cloud $phetar['cloudcode'] text description of sky cover $phetar['skycond'] visibility in miles $phetar['visibility'] ceiling in feet $phetar['ceiling'] WMO code for each weather type $phetar['wxcode'][[0-9]+]['full'] WMO code for each weather intensity $phetar['wxcode'][[0-9]+]['intensity'] WMO code for each weather modifier $phetar['wxcode'][[0-9]+)-1]['modifier'] WMO code for each weather phenomenon $phetar['wxcode'][[0-9]+]['phenomenon'] number corresponding to intercept vector icon $phetar['wid'] temperature variables temperature in celcius $phetar['tempc'] temperature in fahrenheit $phetar['tempf'] windchill in celcius $phetar['windchillc'] windchill in fahrenheit $phetar['windchillf'] heat index in celcius (US) $phetar['heatindexc'] heat index in fahrenheit (US) $phetar['heatindexf'] humidex in celcius (Canada) $phetar['humidexc'] humidex in fahrenheit (Canada) $phetar['humidexf'] humidity variables dew point in celcius $phetar['dewc'] dew point in fahrenheit $phetar['dewf'] percent relative humidity $phetar['relhumidity'] pressure variables pressure in millibars $phetar['pressure'] pressure in inches of mercury $phetar['inhg']