ucar.grib.grib2
Class Grib2DataSection

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

public final class Grib2DataSection
extends java.lang.Object

A class that represents the DataSection of a GRIB product.


Constructor Summary
Grib2DataSection(boolean getData, ucar.unidata.io.RandomAccessFile raf, Grib2GridDefinitionSection gds, Grib2DataRepresentationSection drs, Grib2BitMapSection bms)
          Constructor for a Grib2 Data Section.
 
Method Summary
 float[] getData()
          Grib2 data unpacked as floats.
static boolean isStaticMissingValueInUse()
          flag to signifly if a static Missing Value is used.
static void setStaticMissingValueInUse(boolean staticMissingValueInUse)
          flag to signifly if a static Missing Value is used.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2DataSection

public Grib2DataSection(boolean getData,
                        ucar.unidata.io.RandomAccessFile raf,
                        Grib2GridDefinitionSection gds,
                        Grib2DataRepresentationSection drs,
                        Grib2BitMapSection bms)
                 throws java.io.IOException
Constructor for a Grib2 Data Section.

Parameters:
getData - boolean whether to read data or skip read
raf - RandomAccessFile of Grib file
gds - Grib2GridDefinitionSection
drs - Grib2DataRepresentationSection
bms - Grib2BitMapSection
Throws:
java.io.IOException - on data reads
Method Detail

getData

public final float[] getData()
Grib2 data unpacked as floats.

Returns:
data

isStaticMissingValueInUse

public static boolean isStaticMissingValueInUse()
flag to signifly if a static Missing Value is used. Since it's possible to have different missing values in a Grib file, the first record's missing value might not be the correct missing value for the current record. If a static missing value is used (float.NaN) then there will be no conflict of missing value processing.

Returns:
staticMissingValueInUse boolean

setStaticMissingValueInUse

public static void setStaticMissingValueInUse(boolean staticMissingValueInUse)
flag to signifly if a static Missing Value is used. Since it's possible to have different missing values in a Grib file, the first record's missing value might not be the correct missing value for the current record. If a static missing value is used (float.NaN) then there will be no conflict of missing value processing.

Parameters:
staticMissingValueInUse - boolean