metar() is the function to whwich you should pass a METAR string. It
will take care of decomposing it into its component parts converting
the units and so on.
Example: $m->metar("KFDY 251450Z 21012G21KT 8SM OVC065 04/M01 A3010 RMK 57014");
debug() toggles debugging messages. By default, debugging is turned
<B>offB>. Turn it on if you are developing METAR or having trouble with
debug() understands all of the folloing:
If you contact me for help, Ill likely ask you for some debugging output.
dump() will dump the internal data structure for the METAR in a
semi-human readable format.
version() will print out the current version.
Example: print $m->version;
Called internally to break the METAR into its component tokens.
After youve called <B>B>metar()<B>B>, youd probably like to get at the individual values for things like temperature, dew point, and so on. You do that by accessing individual variables via the METAR object.
This section lists those variables and what they represent.
VERSION The version of METAR.pm that youre using. METAR The actual, raw METAR. TYPE Report type in English (Routine Weather Report or Special Weather Report) SITE 4-letter site code. DATE The date (just the day of the month) on which the report was issued. TIME The time at which the report was issued. MOD Modifier (AUTO/COR) if any. WIND_DIR_ENG The current wind direction in english (Southwest, East, North, etc.) WIND_DIR_ABB The current wind direction in abbreviated english (S, E, N, etc.) WIND_DIR_DEG The current wind direction in degrees. WIND_KTS The current wind speed in Knots. WIND_MPH The current wind speed in Miles Per Hour. WIND_GUST_KTS The current wind gusting speed in Knots. WIND_GUST_MPH The current wind gusting speed in Miles Per Hour. WIND_VAR The wind variation in English WIND_VAR_1 The first wind variation direction WIND_VAR_2 The second wind variation direction VISIBILITY Visibility information. WIND Wind information. RUNWAY Runway information. WEATHER Current weather (array) WEATHER_LOG Current weather log (array) SKY Current cloud cover (array) TEMP_C Temperature in Celsius. TEMP_F Temperature in Fahrenheit. DEW_C Dew point in Celsius. DEW_F Dew point in Fahrenheit. HOURLY_TEMP_F Hourly current temperature, fahrenheit HOURLY_TEMP_C Hourly current temperature, celcius HOURLY_DEW_F Hourly dewpoint, fahrenheit HOURLY_DEW_C Hourly dewpoint, celcius ALT Altimeter setting (barometric pressure). REMARKS Any remarks in the report.
Test suite is small and incomplete. Needs work yet.
Older versions of this module were installed as METAR instaed of Geo::METAR
The Geo::METAR is only initialized once, which means youll get left-over crud in variables when you call the metar() function twice.
What is an invalid METAR in one country is a standard one in the next. The standard is interpreted and used by meteorologists all over the world, with local variations. This means there will always be METARs that will trip the parser.
There is a TODO file included in the Geo::METAR distribution listing the outstanding tasks that I or others have devised. Please check that list before you submit a bug report or request a new feture. It might already be on the TODO list.
Copyright 1997-2000, Jeremy D. Zawodny <Jeremy [at] Zawodny.com>
Copyright 2007, Koos van den Hout <firstname.lastname@example.org>
Geo::METAR is covered under the GNU Public License (GPL) version 2 or later.
The Geo::METAR Web site is located at:
In addition to our work on Geo::METAR, Weve received ideas, help, and patches from the following folks:
* Ethan Dicks <ethan.dicks [at] gmail.com> Testing of Geo::METAR at the South Pole. Corrections and pointers to interesting cases to test. * Otterboy <jong [at] watchguard.com> Random script fixes and initial debugging help * Remi Lefebvre <remi [at] solaria.dhis.org> Debian packaging as libgeo-metar-perl.deb. * Mike Engelhart <mengelhart [at] earthtrip.com> Wind direction naming corrections. * Michael Starling <mstarling [at] logic.bm> Wind direction naming corrections. * Hans Einar Nielssen <hans.einar [at] nielssen.com> Wind direction naming corrections. * Nathan Neulinger <nneul [at] umr.edu> Lots of enhancements and corrections. Too many to list here.
lcdproc at http://www.lcdproc.org/ uses Geo::METAR in lcdmetar.pl to display weather data on an lcd.
|perl v5.20.3||METAR (3)||2008-01-02|