ucar.grib.grib2
Class Grib2BitMapSection

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

public final class Grib2BitMapSection
extends java.lang.Object

A class that represents the BitMapSection of a GRIB product. A bitmap is a boolean array that designates if the values is missing or not in the final data array. If the value is missing, then the determined missing value is entered in that position in the final data array.

Version:
1.0
Author:
Robb Kambic

Constructor Summary
Grib2BitMapSection(boolean createBM, ucar.unidata.io.RandomAccessFile raf, Grib2GridDefinitionSection gds)
          Constructs a Grib2BitMapSection object from a RandomAccessFile.
 
Method Summary
 boolean[] getBitmap()
          Get bit map.
 int getBitmapIndicator()
          Get bit map indicator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2BitMapSection

public Grib2BitMapSection(boolean createBM,
                          ucar.unidata.io.RandomAccessFile raf,
                          Grib2GridDefinitionSection gds)
                   throws java.io.IOException
Constructs a Grib2BitMapSection object from a RandomAccessFile.

Parameters:
raf - RandomAccessFile with Section BMS content
gds - Grib2GridDefinitionSection
Throws:
java.io.IOException - if stream contains no valid GRIB file
Method Detail

getBitmapIndicator

public final int getBitmapIndicator()
Get bit map indicator.

Returns:
int

getBitmap

public final boolean[] getBitmap()
Get bit map.

Returns:
bit map as array of boolean values