ucar.grib.grib1
Class Grib1BinaryDataSection

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

public final class Grib1BinaryDataSection
extends java.lang.Object

A class representing the binary data section (BDS) of a GRIB record.

Version:
1.0

Constructor Summary
Grib1BinaryDataSection(ucar.unidata.io.RandomAccessFile raf, int decimalscale, Grib1BitMapSection bms)
          Constructs a Grib1BinaryDataSection object from a raf.
Grib1BinaryDataSection(ucar.unidata.io.RandomAccessFile raf, int decimalscale, Grib1BitMapSection bms, int scanMode, int Xlength)
          Constructs a Grib1BinaryDataSection object from a raf.
Grib1BinaryDataSection(ucar.unidata.io.RandomAccessFile raf, int decimalscale, Grib1BitMapSection bms, int scanMode, int Xlength, int Ylength)
           
 
Method Summary
 float[] getValues()
          Grid values as an array of float.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1BinaryDataSection

public Grib1BinaryDataSection(ucar.unidata.io.RandomAccessFile raf,
                              int decimalscale,
                              Grib1BitMapSection bms)
                       throws java.io.IOException,
                              NotSupportedException
Constructs a Grib1BinaryDataSection object from a raf. A bit map is not available.

Parameters:
raf - RandomAccessFile stream with BDS content
decimalscale - the exponent of the decimal scale
Throws:
java.io.IOException - if stream can not be opened etc.
NotSupportedException - if stream contains no valid GRIB file

Grib1BinaryDataSection

public Grib1BinaryDataSection(ucar.unidata.io.RandomAccessFile raf,
                              int decimalscale,
                              Grib1BitMapSection bms,
                              int scanMode,
                              int Xlength)
                       throws java.io.IOException,
                              NotSupportedException
Constructs a Grib1BinaryDataSection object from a raf. A bit map is defined.

Parameters:
raf - raf with BDS content
decimalscale - the exponent of the decimal scale
bms - bit map section of GRIB record
Throws:
java.io.IOException - if raf can not be opened etc.
NotSupportedException - if stream contains no valid GRIB file

Grib1BinaryDataSection

public Grib1BinaryDataSection(ucar.unidata.io.RandomAccessFile raf,
                              int decimalscale,
                              Grib1BitMapSection bms,
                              int scanMode,
                              int Xlength,
                              int Ylength)
                       throws java.io.IOException,
                              NotSupportedException
Throws:
java.io.IOException
NotSupportedException
Method Detail

getValues

public final float[] getValues()
Grid values as an array of float.

Returns:
array of grid values