Package ucar.nc2.iosp.bufr
Class BufrDataDescriptionSection
- java.lang.Object
-
- ucar.nc2.iosp.bufr.BufrDataDescriptionSection
-
@Immutable public class BufrDataDescriptionSection extends Object
Represents Section 3 of a BUFR message.- Since:
- May 10, 2008
-
-
Constructor Summary
Constructors Constructor Description BufrDataDescriptionSection(RandomAccessFile raf)
Constructs a BufrDataDescriptionSection object by reading section 3 from a BUFR file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Short>
getDataDescriptors()
get list of data descriptors as Shortsint
getDataType()
Data type (compressed or non-compressed).List<String>
getDescriptors()
get list of data descriptors as Stringsint
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
-
-
-
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
-
-