ucar.grib.grib1
Class Grib1BinaryDataSection

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

public final class Grib1BinaryDataSection
extends Object

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

Version:
1.0

Constructor Summary
Grib1BinaryDataSection(RandomAccessFile raf, int decimalscale, Grib1BitMapSection bms)
          Constructs a Grib1BinaryDataSection object from a raf.
Grib1BinaryDataSection(RandomAccessFile raf, int decimalscale, Grib1BitMapSection bms, int scanMode, int Xlength)
          Constructs a Grib1BinaryDataSection object from a raf.
Grib1BinaryDataSection(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1BinaryDataSection

public Grib1BinaryDataSection(RandomAccessFile raf,
                              int decimalscale,
                              Grib1BitMapSection bms)
                       throws 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:
IOException - if stream can not be opened etc.
NotSupportedException - if stream contains no valid GRIB file

Grib1BinaryDataSection

public Grib1BinaryDataSection(RandomAccessFile raf,
                              int decimalscale,
                              Grib1BitMapSection bms,
                              int scanMode,
                              int Xlength)
                       throws 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:
IOException - if raf can not be opened etc.
NotSupportedException - if stream contains no valid GRIB file

Grib1BinaryDataSection

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

getValues

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

Returns:
array of grid values


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