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
FieldsModifier and TypeFieldDescriptionprotected ByteBufferThe data buffer to read.protected BinaryStreamReaderThe binary reader for this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the dataset creation site.Gets the dataset name as stored in the header.Gets the data end date.intGets the file format version number.intGets the number of header records in the data file.intGets 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, waitMethods 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:DataHeaderGets the data spacecraft name.- Specified by:
getSpacecraftin interfaceDataHeader
-
getStartDate
Description copied from interface:DataHeaderGets the data start date.- Specified by:
getStartDatein interfaceDataHeader
-
getEndDate
Description copied from interface:DataHeaderGets the data end date.- Specified by:
getEndDatein interfaceDataHeader
-
getRecordCount
public int getRecordCount()Description copied from interface:DataHeaderGets the number of data records in the data file.- Specified by:
getRecordCountin interfaceDataHeader
-
getHeaderCount
public int getHeaderCount()Description copied from interface:DataHeaderGets the number of header records in the data file.- Specified by:
getHeaderCountin interfaceDataHeader
-
getFormatVersion
public int getFormatVersion()Description copied from interface:DataHeaderGets the file format version number.- Specified by:
getFormatVersionin 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:DataHeaderGets the dataset name as stored in the header.- Specified by:
getDatasetNamein interfaceDataHeader
-
getCreationSite
Description copied from interface:DataHeaderGets the dataset creation site.- Specified by:
getCreationSitein interfaceDataHeader
-