| metafsrc2raw.pl 1.37 |
metafsrc2raw.pl
metafsrc2raw.pl -F<format> [OPTION]... [FILE]...
This script converts the input data (weather information from various Internet
servers) to complete METAR, TAF, or SYNOP messages. The output will be 1
message per line, without any distribution additions or contractions, with
leading keywords METAR, SPECI, TAF, and SYNOP removed and the WMO
message type TT from the message header prepended:
METAR
SPECI
TAF, forecast period >= 12 hours
TAF, forecast period < 12 hours
SYNOP at main hours (00:00, 06:00, 12:00, 18:00 UTC)
SYNOP at intermediate hours (03:00, 09:00, 15:00, 21:00 UTC)
SYNOP at non-standard (other than main and intermediate) hours
If no input files are specified, then the standard input is read.
The Perl module Getopt::Std is required.
National Oceanic and Atmospheric Administration
the National Weather Service department of the NOAA
the Internet Weather Source of the NWS
the Aviation Digital Data Service of the NWS
the experimental data server of the Aviation Digital Data Service of the NWS
College of DuPage
Florida State University
origin of the input data: metar_cycle_iws, staf_cycle_iws, taf_cycle_iws, metaf_nws, metaf_cod, metaf_fsu, synop_nws, synop_cod, synop_fsu
suppress duplicate messages
suppress messages that only contain NIL
Parse SYNOP messages from NOAA/NWS, suppressing NIL messages and duplicates:
metafsrc2raw.pl -DNF synop_nws <<"EOF" ####018000228#### SMPY01 SGAS 060600 AAXX 06064 86134 32970 02402 10250 20235 40105 56005= 86297 NIL= 86134 32970 02402 10250 20235 40105 56005= 86218 32970 01810 10240 20209 40103 58011= ####018000158#### SMFG01 SOCA 060600 AAXX 06064 81405 01259 60505 10241 20229 30105 40114 60071 76086 86200 333 32024 55048 60067 58002 70098 82705 86813 555 69905=####018000118#### SMCS01 MROC 060600 AAXX 06064 78762 32970 00915 10220 20160 39094 40101 57005 333 10280 20193 30/// 59006= EOF
results in:
SM AAXX 06064 86134 32970 02402 10250 20235 40105 56005 SM AAXX 06064 86218 32970 01810 10240 20209 40103 58011 SM AAXX 06064 81405 01259 60505 10241 20229 30105 40114 60071 76086 86200 333 32024 55048 60067 58002 70098 82705 86813 555 69905 SM AAXX 06064 78762 32970 00915 10220 20160 39094 40101 57005 333 10280 20193 30/// 59006
Parse METAR/SPECI messages from the College of DuPage:
metafsrc2raw.pl -F metaf_cod <<"EOF"
355
SAUS70 KWBC 161200
METAR
KDZJ 161146Z AUTO 00000KT 10SM -DZ SCT002 BKN075 OVC100 09/09
A3013 RMK AO2=
KLDJ 161150Z AUTO 00000KT 10SM CLR 03/M01 A3027 RMK AO2=
KMLJ 161145Z AUTO 00000KT 4SM RA BKN005 BKN012 OVC033 12/12 A3017
RMK AO2=
351
SPCN51 CWAO 161254
SPECI CWCL 161254Z AUTO 19008KT 9SM FEW008 FEW015 BKN027 BKN043
M04/M06 A2947=
EOF
results in:
SA KDZJ 161146Z AUTO 00000KT 10SM -DZ SCT002 BKN075 OVC100 09/09 A3013 RMK AO2 SA KLDJ 161150Z AUTO 00000KT 10SM CLR 03/M01 A3027 RMK AO2 SA KMLJ 161145Z AUTO 00000KT 4SM RA BKN005 BKN012 OVC033 12/12 A3017 RMK AO2 SP CWCL 161254Z AUTO 19008KT 9SM FEW008 FEW015 BKN027 BKN043 M04/M06 A2947
http://metaf2xml.sourceforge.net/
copyright (c) 2009 metaf2xml @ http://metaf2xml.sourceforge.net/
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
| metafsrc2raw.pl 1.37 |