WXP version 5
Program Reference

CLIMAT

Sections

NAME

climat - CLIMAT data conversion program

SYNOPSIS

climat [parameters...] filename

PARAMETERS

Command Line Resource Default Description
-h help No Lists basic help information.
-df=filename default .wxpdef Sets the name of the resource file.
-na=name name climat Specifies the name used in resource file parsing.
-ba batch No Run program in batch mode
-me=level message out2 Specifies level of messages to be displayed
  • file information - mess
  • decoded output -out3
-fp=filepath file_path current directory Specifies location of database files.  
-dp=datapath data_path current directory Specifies the location (path) of the input raw data files. This is the location where the ingest program has saved the data files. This may be modified in the name convention file.
-nc=name_conv name_conv name_conv The name convention file specifies how files are named in WXP. This sets which name convention file to use.
-if=in_file in_file cli_dat Specifies the input file name tag. The default is cli_dat, but it can be modified to any value in the filename convention file. A full name convention can be specified as well.
-of=out_file out_file None Specifies the output file name tag. If this is not specified, the output is to standard output.  The tag is used to create the output file name.
-ou=output output text,g111 The output resource specifies the output of the program.
  • text - text output
  • raw - output ready for use in raw file (use out_file to save to file)
  • data - raw data
  • gall - decode all groups
  • g111 - decode only group 1
  • g222 - decode only group 2
  • g333 - decode only group 3
  • g444 - decode only group 4
-cu=[hour|la] current None This specifies to use current data files. The current filename is based on the name convention. An optional hour can be specified for older data. If la is specified, the program will search back to find the most recent available file.
-ho=hour hour None This resource specifies the exact hour that a data file is valid for. This locks in the start hour for a multi-file sequence.
-pa=param[,param...] parameter None Extra parameters
filename[#seq] filename None
User Prompt
Batch: current=la
The name of the raw data file to be converted. An optional sequence number can be added to designate the time for non-WXP files.

DESCRIPTION

The CLIMAT decoding program will search for and decode CLIMAT reports.

CLIMAT
05998 48455
  111 10069 20076 30314013 403590273 5334 60231416
      7253117 8000000 9000000
  222 06190 10062 20069 30292012 403000256 5316
      6022013 7216 8000000 9000000
  333 03131 12400 31612 40401 8020000
  444 0033116 1024031 2038301 3023806 4067030
      5380006 61500 711000            

The output is either textual or raw. The textual format lists a parameter description along with its value.  The raw format readies the data to be put into a raw file:

WXPRAW
 0Z  4 JAN 98
!Climate Data
 ID    StPr   SLPr    T   Tdev  TMx   TMn   VPr  Prec Q Dy Sun Pct $
60101 1016.9 1019.4  12.2  5.7  15.4   9.0 10.8   145 4  8 105  63
60115  962.6 1018.2   9.8  2.4  15.1   5.1  8.7    43 4  8 164  52
60120 1018.0 1019.7  13.1  0.3  17.0   9.1 12.2    93 4 12 191 111
60135 1011.0 1021.0  12.0  1.8  16.7   8.0 12.6   109 4 12 188  20
60150  954.9 1019.2   9.4  2.4  21.2  -1.7  9.7    90 3 13 134  73
60155 1012.7 1019.7  13.1  0.4  16.9   9.0 11.5    61 3  9 195  62
60195  849.6 1151.1   6.4  8.6  11.2   1.7  6.5    20 4  2 298  75
60220 1019.1 1019.9  15.4  0.3  19.0  11.8 14.4    34 2  5 221  93
60230  964.4 1019.5  11.8  1.0  16.7   7.3 10.4    46 4 -9 199  95
60250 1015.2 1018.0  15.4  2.2  20.3   9.8  -99    33 4  4 239  77
60265  889.1  512.1  11.2  2.7  17.9   5.1  6.2    34 5  3 268  86
60318 1018.3 1019.5  12.9  2.0  16.1   9.7 11.5   129 4 12 184 114   

EXAMPLES

   climat -cu=la -of=cli_raw

will convert the latest CLIMAT file and create raw output.file

FILES

SEE ALSO


Last updated June 10, 1998