ucar.grib.grib1
Class Grib1Data

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

public final class Grib1Data
extends java.lang.Object

A class used to extract data from a GRIB1 file. see IndexFormat.txt


Constructor Summary
Grib1Data(ucar.unidata.io.RandomAccessFile raf)
          Constructs a Grib2Data object from a stream.
 
Method Summary
 float[] getData(long offset, int decimalScale, boolean bmsExists)
          Reads the Grib data
 float[] getData(long gdsOffset, long dataOffset, int decimalScale, boolean bmsExists)
          Reads the Grib data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1Data

public Grib1Data(ucar.unidata.io.RandomAccessFile raf)
Constructs a Grib2Data object from a stream.

Parameters:
raf - ucar.unidata.io.RandomAccessFile with GRIB content.
Method Detail

getData

public final float[] getData(long gdsOffset,
                             long dataOffset,
                             int decimalScale,
                             boolean bmsExists)
                      throws java.io.IOException
Reads the Grib data

Parameters:
gdsOffset - PDS offset into file.
dataOffset - GDS offset into file.
Returns:
float[]
Throws:
java.io.IOException

getData

public final float[] getData(long offset,
                             int decimalScale,
                             boolean bmsExists)
                      throws java.io.IOException
Reads the Grib data

Parameters:
offset - offset into file.
decimalScale -
bmsExists -
Returns:
float[]
Throws:
NotSupportedException
java.io.IOException