ucar.grib.grib2
Class Grib2Data

java.lang.Object
  extended by ucar.grib.grib2.Grib2Data

public final class Grib2Data
extends Object

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

Author:
Robb Kambic

Constructor Summary
Grib2Data(RandomAccessFile raf)
          Constructs a Grib2Data object for a RandomAccessFile.
 
Method Summary
 float[] getData(long gdsOffset, long pdsOffset, long refTime)
          Reads the Grib data with a certain offsets in the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2Data

public Grib2Data(RandomAccessFile raf)
Constructs a Grib2Data object for a RandomAccessFile.

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

getData

public final float[] getData(long gdsOffset,
                             long pdsOffset,
                             long refTime)
                      throws IOException
Reads the Grib data with a certain offsets in the file.

Parameters:
gdsOffset - position in record where GDS starts
pdsOffset - position in record where PDS starts
refTime - reference time in msecs LOOK WTF ??
Returns:
float[] the data
Throws:
IOException - if raf does not contain a valid GRIB record.


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