Package ucar.nc2.iosp.bufr
Class BufrIdentificationSection
- java.lang.Object
-
- ucar.nc2.iosp.bufr.BufrIdentificationSection
-
@Immutable public class BufrIdentificationSection extends Object
A class representing the IdentificationSection (section 1) of a BUFR record. Handles editions 2,3,4.
-
-
Constructor Summary
Constructors Constructor Description BufrIdentificationSection(ucar.unidata.io.RandomAccessFile raf, BufrIndicatorSection is)Constructs a BufrIdentificationSection object from a raf.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCategory()intgetCenterId()Identification of center.intgetLocalSubCategory()intgetLocalTableVersion()byte[]getLocalUseBytes()last bytes of the id section are "reserved for local use by ADP centers.intgetMasterTableId()intgetMasterTableVersion()byte[]getOptiondsalSection(ucar.unidata.io.RandomAccessFile raf)ucar.nc2.time.CalendarDategetReferenceTime()return record header time as a CalendarDateintgetSubCategory()intgetSubCenterId()Identification of subcenter.intgetUpdateSequence()Get update sequence.
-
-
-
Constructor Detail
-
BufrIdentificationSection
public BufrIdentificationSection(ucar.unidata.io.RandomAccessFile raf, BufrIndicatorSection is) throws IOExceptionConstructs a BufrIdentificationSection object from a raf.- Parameters:
raf- RandomAccessFile with Section 1 contentis- the BufrIndicatorSection, needed for the bufr edition number- Throws:
IOException- if raf contains no valid BUFR file
-
-
Method Detail
-
getCenterId
public final int getCenterId()
Identification of center.- Returns:
- center id as int
-
getSubCenterId
public final int getSubCenterId()
Identification of subcenter.- Returns:
- subcenter as int
-
getUpdateSequence
public final int getUpdateSequence()
Get update sequence.- Returns:
- update_sequence
-
getReferenceTime
public final ucar.nc2.time.CalendarDate getReferenceTime()
return record header time as a CalendarDate- Returns:
- referenceTime
-
getCategory
public final int getCategory()
-
getSubCategory
public final int getSubCategory()
-
getLocalSubCategory
public final int getLocalSubCategory()
-
getMasterTableId
public final int getMasterTableId()
-
getMasterTableVersion
public final int getMasterTableVersion()
-
getLocalTableVersion
public final int getLocalTableVersion()
-
getLocalUseBytes
public final byte[] getLocalUseBytes()
last bytes of the id section are "reserved for local use by ADP centers.- Returns:
- local use bytes, if any.
-
getOptiondsalSection
public final byte[] getOptiondsalSection(ucar.unidata.io.RandomAccessFile raf) throws IOException- Throws:
IOException
-
-