ucar.grib.grib1
Class Grib1ExtractRawData

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

public final class Grib1ExtractRawData
extends Object

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


Field Summary
static boolean getParameter
           
 
Constructor Summary
Grib1ExtractRawData(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(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getParameter

public static boolean getParameter
Constructor Detail

Grib1ExtractRawData

public Grib1ExtractRawData(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,
                          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
IOException - if raf does not contain a valid GRIB record

getEdition

public final int getEdition()
                     throws 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
IOException

main

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

Parameters:
args - filename
Throws:
IOException
NotSupportedException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.