ucar.grib.grib1
Class Grib1ExtractRawData

java.lang.Object
  extended by ucar.grib.grib1.Grib1ExtractRawData

public final class Grib1ExtractRawData
extends java.lang.Object

A class that scans a GRIB file to extract product information.


Field Summary
static boolean getParameter
           
 
Constructor Summary
Grib1ExtractRawData(ucar.unidata.io.RandomAccessFile raf)
          Constructs a Grib1Input object from a raf.
 
Method Summary
 int getEdition()
          Grib edition number 1, 2 or 0 not a Grib file.
static void main(java.lang.String[] args)
          Outputs first record of raw data to STDOUT or parms based on discipline, category, and number
 boolean scan(int[] parm)
          scans a Grib file to gather information that could be used to create an index or dump the metadata contents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getParameter

public static boolean getParameter
Constructor Detail

Grib1ExtractRawData

public Grib1ExtractRawData(ucar.unidata.io.RandomAccessFile raf)
Constructs a Grib1Input object from a raf.

Parameters:
raf - with GRIB content
Method Detail

scan

public final boolean scan(int[] parm)
                   throws NotSupportedException,
                          java.io.IOException
scans a Grib file to gather information that could be used to create an index or dump the metadata contents.

Parameters:
parm -
Throws:
NotSupportedException
java.io.IOException - if raf does not contain a valid GRIB record

getEdition

public final int getEdition()
                     throws java.io.IOException,
                            NotSupportedException
Grib edition number 1, 2 or 0 not a Grib file.

Returns:
int 0 not a Grib file, 1 Grib1, 2 Grib2
Throws:
NotSupportedException
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        NotSupportedException
Outputs first record of raw data to STDOUT or parms based on discipline, category, and number

Parameters:
args - filename
Throws:
java.io.IOException
NotSupportedException