1METAR2NC(1) UNIDATA DECODERS METAR2NC(1)
2
3
4
6 metar2nc - decodes METAR reports and stores the reports in NetCDF for‐
7 mat.
8
9
11 metar2nc [-v] metar.cdl [datadir] [yyyymm]
12
14 Translates the Aviation Routine Weather Reports( METARs ) and the Avia‐
15 tion Selected Special Reports( SPECIs ) to the NetCDF format. The
16 metar.cdl file that is included in this distribution contains the 140
17 meteorological variables possible in the reports. The user has the
18 ability to request only the variables that has interest by commenting
19 out the others.
20
21
23 0) perl5 Installed on the system.
24
25 1) Latest version of netcdf-perl package is installed.
26
27 2) Requires file metar.cdl for the netcdf utility 'ncgen' to create
28 template NetCDF file.
29
30 3) The ncgen utility is needed, paths are util/ncgen,
31 /usr/local/ldm/util/ncgen or ./ncgen
32
33 4) The station data file sfmetar_sa.tbl, in etc/sfmetar_sa.tbl or
34 ./sfmetar_sa.tbl directory
35
36
38 -v ie 'metar2nc -v metar.cdl' will output the reports in plain text
39 in the metarLog.<process Id>.nc log file in the datadir, very
40 verbose.
41
42
43 datadir
44 The directory where the decoded files are stored, including the
45 log files and list of current processed reports. The default is
46 the current directory ".".
47
48
49 yyyymm This is the year and month of the reports, the default is the
50 current yyyymm.
51
52
54 Command line:
55 % metar2nc metar.cdl < 96040100_upa.wmo
56
57
58 pqact.conf:
59
60 # # metar2nc perl decoder for Aviation Reports #
61
62 DDS|IDS ^S(A....|P....|XUS8.) .... ([0-3][0-9])
63 PIPE /usr/local/ldm/decoders/metar2nc
64 etc/metar.cdl
65 data/decoded
66 (2:yyyy)(2:mm)
67
68
70 If you have problems with this program, then you should first examine
71 the decoders email archive for similar problems and how they were
72 solved. The email archive is available via the following World Wide
73 Web URL:
74
75 http://www.unidata.ucar.edu/packages/decoders
76
77 If this does not suffice and your site is a member of the Unidata pro‐
78 gram, then send an inquiry via email -- together will all relevant in‐
79 formation -- to
80
81 support@unidata.ucar.edu
82
83
84
85Printed: 119.6.22 1996-10-23 METAR2NC(1)