ucar.nc2.iosp.gempak
Class GempakGrib2Data

java.lang.Object
  extended by ucar.nc2.iosp.gempak.GempakGrib2Data

public final class GempakGrib2Data
extends Object

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

Author:
Robb Kambic

Constructor Summary
GempakGrib2Data(RandomAccessFile raf)
          Constructs a GempakGrib2Data object for a RandomAccessFile.
GempakGrib2Data(RandomAccessFile raf, boolean expandQuasi)
          Constructs a GempakGrib2Data object for a RandomAccessFile.
 
Method Summary
 float[] getData(long start, 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

GempakGrib2Data

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

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

GempakGrib2Data

public GempakGrib2Data(RandomAccessFile raf,
                       boolean expandQuasi)
Constructs a GempakGrib2Data object for a RandomAccessFile.

Parameters:
raf - ucar.unidata.io.RandomAccessFile with GRIB content.
expandQuasi - whether to expand Quasi grids, default is true.
Method Detail

getData

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

Parameters:
start - starting point for reads
refTime - reference time in msecs
Returns:
float[]
Throws:
IOException - if raf does not contain a valid GRIB record.


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