Class AbstractDataHeader

java.lang.Object
noaa.coastwatch.io.noaa1b.AbstractDataHeader
All Implemented Interfaces:
DataHeader
Direct Known Subclasses:
AMSUAHeader, AMSUBHeader, HIRS4Header, MHSHeader

public abstract class AbstractDataHeader extends Object implements DataHeader
The AbstractDataHeader class reads NOAA 1b data header records.
Since:
3.2.2
Author:
Peter Hollemans
  • Field Details

    • reader

      protected BinaryStreamReader reader
      The binary reader for this class.
    • buffer

      protected ByteBuffer buffer
      The data buffer to read.
  • Constructor Details

    • AbstractDataHeader

      public AbstractDataHeader(ByteBuffer buffer)
      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

      public String getSpacecraft()
      Description copied from interface: DataHeader
      Gets the data spacecraft name.
      Specified by:
      getSpacecraft in interface DataHeader
    • getStartDate

      public Date getStartDate()
      Description copied from interface: DataHeader
      Gets the data start date.
      Specified by:
      getStartDate in interface DataHeader
    • getEndDate

      public Date getEndDate()
      Description copied from interface: DataHeader
      Gets the data end date.
      Specified by:
      getEndDate in interface DataHeader
    • getRecordCount

      public int getRecordCount()
      Description copied from interface: DataHeader
      Gets the number of data records in the data file.
      Specified by:
      getRecordCount in interface DataHeader
    • getHeaderCount

      public int getHeaderCount()
      Description copied from interface: DataHeader
      Gets the number of header records in the data file.
      Specified by:
      getHeaderCount in interface DataHeader
    • getFormatVersion

      public int getFormatVersion()
      Description copied from interface: DataHeader
      Gets the file format version number.
      Specified by:
      getFormatVersion in interface DataHeader
      Returns:
      the format version in the range [1..n] where n is the latest version being produced by NOAA.
    • getDatasetName

      public String getDatasetName()
      Description copied from interface: DataHeader
      Gets the dataset name as stored in the header.
      Specified by:
      getDatasetName in interface DataHeader
    • getCreationSite

      public String getCreationSite()
      Description copied from interface: DataHeader
      Gets the dataset creation site.
      Specified by:
      getCreationSite in interface DataHeader