ucar.grib.grib2
Class Grib2Data
java.lang.Object
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
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 |
Grib2Data
public Grib2Data(RandomAccessFile raf)
- Constructs a Grib2Data object for a RandomAccessFile.
- Parameters:
raf
- ucar.unidata.io.RandomAccessFile with GRIB content
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 startspdsOffset
- position in record where PDS startsrefTime
- 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.