Class NOAA1bReader.DataHeader

java.lang.Object
noaa.coastwatch.io.NOAA1bReader.DataHeader
Direct Known Subclasses:
NOAA1bV1Reader.DataHeaderV1, NOAA1bV2Reader.DataHeaderV2
Enclosing class:
NOAA1bReader

public abstract class NOAA1bReader.DataHeader extends Object
The data header class may be used to retrieve the header of the dataset.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected ByteBuffer
    The header data.
    static final int
    The count of data gaps attribute (Integer).
    static final int
    The number of data records attribute (Integer).
    static final int
    The data type code attribute (String).
    static final int
    The dataset name attribute (String).
    static final int
    The dataset ending Julian day attribute: [1..366] (Integer).
    static final int
    The dataset ending time in milliseconds attribute (Long).
    static final int
    The dataset ending year attribute (Integer).
    static final int
    The spacecraft ID attribute (String).
    static final int
    The dataset starting Julian day attribute: [1..366] (Integer).
    static final int
    The dataset starting time in milliseconds attribute (Long).
    static final int
    The dataset starting year attribute (Integer).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new dataset header.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract Object
    getAttribute(int index)
    Gets a header attribute.
    Gets the raw header data.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SPACECRAFT_ID

      public static final int SPACECRAFT_ID
      The spacecraft ID attribute (String).
      See Also:
    • DATA_TYPE_CODE

      public static final int DATA_TYPE_CODE
      The data type code attribute (String).
      See Also:
    • START_YEAR

      public static final int START_YEAR
      The dataset starting year attribute (Integer).
      See Also:
    • START_DAY

      public static final int START_DAY
      The dataset starting Julian day attribute: [1..366] (Integer).
      See Also:
    • START_MILLISECOND

      public static final int START_MILLISECOND
      The dataset starting time in milliseconds attribute (Long).
      See Also:
    • END_YEAR

      public static final int END_YEAR
      The dataset ending year attribute (Integer).
      See Also:
    • END_DAY

      public static final int END_DAY
      The dataset ending Julian day attribute: [1..366] (Integer).
      See Also:
    • END_MILLISECOND

      public static final int END_MILLISECOND
      The dataset ending time in milliseconds attribute (Long).
      See Also:
    • DATA_RECORDS

      public static final int DATA_RECORDS
      The number of data records attribute (Integer).
      See Also:
    • DATA_GAPS

      public static final int DATA_GAPS
      The count of data gaps attribute (Integer).
      See Also:
    • DATASET_NAME

      public static final int DATASET_NAME
      The dataset name attribute (String).
      See Also:
    • data

      protected ByteBuffer data
      The header data.
  • Constructor Details

    • DataHeader

      public DataHeader() throws IOException
      Creates a new dataset header.
      Throws:
      IOException - if an error occurred reading the file data.
  • Method Details

    • getRawData

      public ByteBuffer getRawData()
      Gets the raw header data.
    • getAttribute

      public abstract Object getAttribute(int index)
      Gets a header attribute.
      Parameters:
      index - the attribute index.
      Returns:
      the attribute as an object. Primitive types are wrapped in their corresponding objects.