Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Previous: GEMPAK Decoders Next: GEMPAK Decoders: GEMPAK DC-style decoders Table of contents Frames User Manual GEMPAK Online Tutorial > GEMPAK Decoders

17.0 GEMPAK Decoders: Decoding data into GEMPAK Format

Decoding Data into GEMPAK Format


Using GEMPAK Decoders

GEMPAK decoders have standard look beginning with version 5.4. The supplied NAWIPS/GEMPAK decoders are called "DC"-style decoders. They can be used interactively from the command line or can be run in conjunction with the LDM software from Unidata. DC decoders will create a new file if one does not already exist.

Each DC-style decoder is run with the following syntax:

        dcprogram [options] output_file
The available options are described below. Each individual decoder has it's own set of defaults for these options. For more information about these defaults, please see the help file for each program (type "dcmetr -h" for example, at any system prompt), or see the Decoders Chapter 6 in the GEMPAK Users Manual.

The output file name can be specified using a template. This allows better control of file name creation within the decoders, rather than relying on a name entirely created from the LDM. The template uses the date and time of the bulletin or report to replace the following characters:

	YYYY		Year with century
	YY		Year without the century
	MM		Month number
	DD		Day
	HH		Hour
	NN		Minute
For example, YYMMDD_sao.gem

Standard Decoder Options:


 -v N   Set the verbosity level to "N".  As N goes up, more verbose
        logging occurs.  The default for all decoders is "0".

 -c curtim  "curtim" is the pseudo-current time.  This is a complete
            GEMPAK format date/time (YYMMDD/HHMM) and is used as the 
            system time when decoding archive data.  The default value 
            for this variable for all decoders is the system time.

 -b nhours  "nhours" is the number of hours prior to the current time.
            Only reports within this time period are decoded into 
            the data file.  

 -d decoder_log  "decoder_log" is the name and path of the decoder
                 log file.

 -t time_out  "time_out" is the time out value in seconds of the 
              decoder.  If no data is received within the specified
              time limit, the program will exit.  The default time
              out value for all decoders is 600 seconds.

 -n         The default behavior of the decoder is to store the raw
            text reports in the decoded data file.  Use this flag to 
            NOT store the raw data.

 -h         Print the usage statement and exit

 -p prmfil  Set the parameter packing table to "prmfil".  See below
            for a description of the GEMPAK parameter packing tables.

 -s stntbl  Set the station table to "stntbl".  See below for a 
            description of the GEMPAK station tables.

 -a iadstn  Define the maximum number of additional stations (beyond
            those in "prmfil") that can be added to the data file
            as "iadstn". 

 -m maxtim  Set the maximum number of times in a single data file
            to "maxtim".   The maximum times allowable in a single
            surface file in NAWIPS 5.6 is 300.

 -e NAME=setting Set an environmental variable "NAME" to the value
            specified in "setting".
Certain decoder options are useful only with specific decoders. Also, some decoders may provide additional flags. Consult the individual decoder help file for which flags are valid for each decoder.

 


Previous: GEMPAK Decoders Next: GEMPAK Decoders: GEMPAK DC-style decoders Table of contents Frames User Manual GEMPAK Online Tutorial > GEMPAK Decoders

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690