Package noaa.coastwatch.io.noaa1b
Class AbstractDataHeader
java.lang.Object
noaa.coastwatch.io.noaa1b.AbstractDataHeader
- All Implemented Interfaces:
DataHeader
- Direct Known Subclasses:
AMSUAHeader
,AMSUBHeader
,HIRS4Header
,MHSHeader
The
AbstractDataHeader
class reads NOAA 1b data
header records.- Since:
- 3.2.2
- Author:
- Peter Hollemans
-
Field Summary
Modifier and TypeFieldDescriptionprotected ByteBuffer
The data buffer to read.protected BinaryStreamReader
The binary reader for this class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the dataset creation site.Gets the dataset name as stored in the header.Gets the data end date.int
Gets the file format version number.int
Gets the number of header records in the data file.int
Gets the number of data records in the data file.Gets the data spacecraft name.Gets the data start date.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface noaa.coastwatch.io.noaa1b.DataHeader
getCalibration, getDataRecord, getInstrument, getRecordAttSize, getRecordSize
-
Field Details
-
reader
The binary reader for this class. -
buffer
The data buffer to read.
-
-
Constructor Details
-
AbstractDataHeader
Creates a new header.- Parameters:
buffer
- the buffer to use for header data.- Throws:
RuntimeException
- if the XML stream reader resource file for the subclass cannot be found.
-
-
Method Details
-
getSpacecraft
Description copied from interface:DataHeader
Gets the data spacecraft name.- Specified by:
getSpacecraft
in interfaceDataHeader
-
getStartDate
Description copied from interface:DataHeader
Gets the data start date.- Specified by:
getStartDate
in interfaceDataHeader
-
getEndDate
Description copied from interface:DataHeader
Gets the data end date.- Specified by:
getEndDate
in interfaceDataHeader
-
getRecordCount
public int getRecordCount()Description copied from interface:DataHeader
Gets the number of data records in the data file.- Specified by:
getRecordCount
in interfaceDataHeader
-
getHeaderCount
public int getHeaderCount()Description copied from interface:DataHeader
Gets the number of header records in the data file.- Specified by:
getHeaderCount
in interfaceDataHeader
-
getFormatVersion
public int getFormatVersion()Description copied from interface:DataHeader
Gets the file format version number.- Specified by:
getFormatVersion
in interfaceDataHeader
- Returns:
- the format version in the range [1..n] where n is the latest version being produced by NOAA.
-
getDatasetName
Description copied from interface:DataHeader
Gets the dataset name as stored in the header.- Specified by:
getDatasetName
in interfaceDataHeader
-
getCreationSite
Description copied from interface:DataHeader
Gets the dataset creation site.- Specified by:
getCreationSite
in interfaceDataHeader
-