Package noaa.coastwatch.io
Class NOAA1bReader.ArchiveHeader
java.lang.Object
noaa.coastwatch.io.NOAA1bReader.ArchiveHeader
- Direct Known Subclasses:
NOAA1bV1Reader.ArchiveHeaderV1
,NOAA1bV2Reader.ArchiveHeaderV2
- Enclosing class:
- NOAA1bReader
The archive header class may be used to retrieve specific data
from the archive header of the dataset. Note that not all
datasets have archive headers.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected ByteBuffer
The archive header data.static final int
The official archive dataset name attribute (String).static final int
The dataset duration in minutes attribute (Integer).static final int
The sensor data word size attribute: 8, 10, or 16 bits (Integer).static final int
The dataset starting hour attribute: [0..23] (Integer).static final int
The dataset starting minute attribute: [00..59] (Integer). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Object
getAttribute
(int index) Gets a header attribute.Gets the raw header data.
-
Field Details
-
DATASET_NAME
public static final int DATASET_NAMEThe official archive dataset name attribute (String).- See Also:
-
START_HOUR
public static final int START_HOURThe dataset starting hour attribute: [0..23] (Integer).- See Also:
-
START_MINUTE
public static final int START_MINUTEThe dataset starting minute attribute: [00..59] (Integer).- See Also:
-
DURATION_MINUTES
public static final int DURATION_MINUTESThe dataset duration in minutes attribute (Integer).- See Also:
-
SENSOR_DATA_WORD_SIZE
public static final int SENSOR_DATA_WORD_SIZEThe sensor data word size attribute: 8, 10, or 16 bits (Integer).- See Also:
-
data
The archive header data.
-
-
Constructor Details
-
ArchiveHeader
Creates a new archive header.- Throws:
IOException
- if an error occurred reading the file data.
-
-
Method Details
-
getRawData
Gets the raw header data. -
getAttribute
Gets a header attribute.- Parameters:
index
- the attribute index.- Returns:
- the attribute as an object. Primitive types are wrapped in their corresponding objects.
-