NAGRIB converts gridded data in GRIB files to GEMPAK gridded data.

INPUT PARAMETERS
 
    GBFILE    *GRIB data file name
    INDXFL    *GRIB index file name
    GDOUTF    *Output grid file
    PROJ      *Map projection/angles/margins
    GRDAREA   *Area covered by grid
    KXKY      *Number of grid points in x;y
    MAXGRD    *Maximum number of grids
    CPYFIL    *File to be copied
    OUTPUT    *Output device/filename
 
 

PROGRAM DESCRIPTION
 
    NAGRIB will convert gridded data which is in GRIB files to
    gridded data in a GEMPAK file.

    The GRIB input file is specified in GBFILE, and the index
    file associated with the GRIB file is in INDXFL.

    The GEMPAK output file is given in GDOUTF. This file will
    be opened if it exists and the projection information
    matches the GRIB message projection. If the file does not
    exist, it will be created using information given by the
    user.

    The navigation information given by the user may take several
    forms. The first possibility is for the user to enter
    CPYFIL=#NNN, where NNN is a grid projection number listed in
    GRDNAV.TBL. Second, the user may enter CPYFIL=GDS. This will
    read the navigation from the Grid Definition Section of the
    first GRIB message. Third, the user could enter CPYFIL=OLDFILE,
    where OLDFILE is the name of an existing GEMPAK file from
    which to copy the navigation information. Last, the user
    may choose to use the PROJ, GRDAREA, and KXKY parameters to
    specify the navigation.


EXAMPLES
 
    1.  Convert the data in the NGM GRIB file for 2 Sep 1993.
        Create the GEMPAK file using projection #105 from the
	grid navigation table.


	GBFILE   =  ngm_930902_00_000.grib
	INDXFL   =
	GDOUTF   =  ngm_930902_00.grd
	PROJ     =
	GRDAREA  =
	KXKY     =
	MAXGRD   =  3000
	CPYFIL   =  #105
	OUTPUT   =  t


    2.  Convert the data in the MRF GRIB and INDEX files for
	2 Sep 1993. Create the GEMPAK file using the navigation
	information given the Grid Definition Section of the
	GRIB message.


	GBFILE   =  mrf_930902_00_000.grib
	INDXFL   =  mrf_930902_00_000.indx
	GDOUTF   =  mrf_930902_00.grd
	PROJ     =
	GRDAREA  =
	KXKY     =
	MAXGRD   =  3000
	CPYFIL   =  gds
	OUTPUT   =  t


    3.  Convert the data in the GRIB file for North America. Create
	the GEMPAK file using the user input for PROJ, GRDAREA and
	KXKY.


	GBFILE   =  north_amer.grib
	INDXFL   =
	GDOUTF   =  north_amer.grd
	PROJ     =  ced
	GRDAREA  =  0;-180;90;0
	KXKY     =  181;91
	MAXGRD   =  3000
	CPYFIL   =
	OUTPUT   =  t


ERROR MESSAGES
 
    [NAGRIB  +5]    GRIB version 0 cannot be decoded.
    [NAGRIB  +4]    Invalid parameter code table version.
    [NAGRIB  +3]    No valid parameter found for ....
    [NAGRIB  +2]    No valid vertical coordinate found for ....
    [NAGRIB  +1]    WARNING: This grid is too large for GEMPAK programs.
    [NAGRIB  -1]    Fatal error initializing TAE.
    [NAGRIB  -2]    Fatal error reading TAE parameters.
    [NAGRIB  -3]    Fatal error initializing GEMPLT.
    [NAGRIB  -4]    Navigation information is invalid.
    [NAGRIB  -5]    Grid area ... is invalid.
    [NAGRIB  -6]    Grid size is invalid.
    [NAGRIB  -7]    The grid file name may not be blank.
    [NAGRIB  -8]    Navigation table cannot be read.
    [NAGRIB  -9]    Grid name ... cannot be found in grid table.
    [NAGRIB -10]    Input for GEMPAK output file is blank.
    [NAGRIB -11]    Error opening GEMPAK grid file.
    [NAGRIB -12]    Error creating GEMPAK grid file.
    [NAGRIB -13]    Cannot open GRIB vertical coordinate table.
    [NAGRIB -14]    Cannot open GRIB parameter table.
    [NAGRIB -15]    Error opening GRIB file.
    [NAGRIB -16]    Error getting next message.
    [NAGRIB -17]    Error setting date/time.
    [NAGRIB -18]    Invalid bitmap specification.
    [NAGRIB -19]    Error reading GRIB file.