ucar.grib.grib1
Class Grib1Data

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

public final class Grib1Data
extends Object

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


Constructor Summary
Grib1Data(RandomAccessFile raf)
          Constructs a Grib2Data object from a stream.
 
Method Summary
 float[] getData(long offset, int decimalScale, boolean bmsExists)
          This code should not be used any more, old code left for old indexes <8 Reads the Grib data
 float[] getData(long gdsOffset, long dataOffset, int decimalScale, boolean bmsExists)
          Reads the Grib data
static void setExpandGrib1ThinGrids(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1Data

public Grib1Data(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 IOException
Reads the Grib data

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

getData

public final float[] getData(long offset,
                             int decimalScale,
                             boolean bmsExists)
                      throws IOException
This code should not be used any more, old code left for old indexes <8 Reads the Grib data

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

setExpandGrib1ThinGrids

public static void setExpandGrib1ThinGrids(boolean b)


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