Class AbstractArchiveHeader

java.lang.Object
noaa.coastwatch.io.noaa1b.AbstractArchiveHeader
All Implemented Interfaces:
ArchiveHeader
Direct Known Subclasses:
ARSHeader, TBMHeader

public abstract class AbstractArchiveHeader extends Object implements ArchiveHeader
The AbstractArchiveHeader class reads header data from NOAA 1b data files.
Since:
3.2.2
Author:
Peter Hollemans
  • Field Details

    • reader

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

      protected ByteBuffer inputBuffer
      The input buffer to use for data.
  • Constructor Details

    • AbstractArchiveHeader

      public AbstractArchiveHeader(ByteBuffer inputBuffer) throws IOException
      Creates a new header using the specified byte data.
      Parameters:
      inputBuffer - the buffer to read for byte data.
      Throws:
      IOException - if an error occurred checking the data.
  • Method Details

    • isCompatible

      protected abstract boolean isCompatible(ByteBuffer inputBuffer)
      Determines if the byte buffer data is compatible with this header.
    • getChannelSelection

      public boolean[] getChannelSelection()
      Description copied from interface: ArchiveHeader
      Get the sensor channel data selection flags.
      Specified by:
      getChannelSelection in interface ArchiveHeader
    • getSensorWordSize

      public int getSensorWordSize()
      Description copied from interface: ArchiveHeader
      Gets the sensor word size in bits.
      Specified by:
      getSensorWordSize in interface ArchiveHeader