ucar.nc2.iosp.bufr
Class BufrDataDescriptionSection

java.lang.Object
  extended by ucar.nc2.iosp.bufr.BufrDataDescriptionSection

public class BufrDataDescriptionSection
extends Object

A class that represents the Data Description Section (4) of a BUFR record.


Constructor Summary
BufrDataDescriptionSection(RandomAccessFile raf)
          Constructs a BufrDataDescriptionSection object by reading section 3 from a BUFR file.
 
Method Summary
 List<Short> getDataDescriptors()
          get list of data descriptors as Shorts
 int getDataType()
          Data type (compressed or non-compressed).
 List<String> getDescriptors()
          get list of data descriptors as Strings
 int getNumberDatasets()
          Number of data sets in this record.
 long getOffset()
          Offset to the beginning of BufrDataDescriptionSection.
 boolean isCompressed()
          Is data compressed?
 boolean isObserved()
          Observation data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufrDataDescriptionSection

public BufrDataDescriptionSection(RandomAccessFile raf)
                           throws IOException
Constructs a BufrDataDescriptionSection object by reading section 3 from a BUFR file.

Parameters:
raf - RandomAccessFile, position must be on a BUFR section 3
Throws:
IOException - on read error
Method Detail

getOffset

public final long getOffset()
Offset to the beginning of BufrDataDescriptionSection.

Returns:
offset in bytes of BUFR record

getNumberDatasets

public final int getNumberDatasets()
Number of data sets in this record.

Returns:
datasets

getDataType

public final int getDataType()
Data type (compressed or non-compressed).

Returns:
datatype

isObserved

public boolean isObserved()
Observation data

Returns:
true if observation data

isCompressed

public boolean isCompressed()
Is data compressed?

Returns:
true if data is compressed

getDataDescriptors

public final List<Short> getDataDescriptors()
get list of data descriptors as Shorts

Returns:
descriptors as List

getDescriptors

public final List<String> getDescriptors()
get list of data descriptors as Strings

Returns:
descriptors as List


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