metafsrc2raw.pl 1.37


NAME

metafsrc2raw.pl


SYNOPSIS

  metafsrc2raw.pl -F<format> [OPTION]... [FILE]...


DESCRIPTION

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:

SA

METAR

SP

SPECI

FT

TAF, forecast period >= 12 hours

FC

TAF, forecast period < 12 hours

SM

SYNOP at main hours (00:00, 06:00, 12:00, 18:00 UTC)

SI

SYNOP at intermediate hours (03:00, 09:00, 15:00, 21:00 UTC)

SN

SYNOP at non-standard (other than main and intermediate) hours

If no input files are specified, then the standard input is read.


DEPENDENCIES

The Perl module Getopt::Std is required.


ABBREVIATIONS

noaa

National Oceanic and Atmospheric Administration

nws

the National Weather Service department of the NOAA

iws

the Internet Weather Source of the NWS

adds

the Aviation Digital Data Service of the NWS

addsds

the experimental data server of the Aviation Digital Data Service of the NWS

cod

College of DuPage

fsu

Florida State University


OPTIONS

-F format

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

-D

suppress duplicate messages

-N

suppress messages that only contain NIL


EXAMPLES

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


SEE ALSO

metaf2xml(1), metaf(1),

http://metaf2xml.sourceforge.net/


COPYRIGHT and LICENSE

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