Class NOAA1bV2Reader.ScanLineV2

java.lang.Object
noaa.coastwatch.io.NOAA1bReader.ScanLine
noaa.coastwatch.io.NOAA1bV2Reader.ScanLineV2
Direct Known Subclasses:
NOAA1bV3Reader.ScanLineV3
Enclosing class:
NOAA1bV2Reader

public class NOAA1bV2Reader.ScanLineV2 extends NOAA1bReader.ScanLine
The scan line version 2 class is a scan line that can read, calibrate, and navigate NOAA-KLM data.
  • Field Details

    • CH1_SLOPE1

      public static final int CH1_SLOPE1
      The channel 1 calibration slope 1 attribute (Float).
      See Also:
    • CH1_INTERCEPT1

      public static final int CH1_INTERCEPT1
      The channel 1 calibration intercept 1 attribute (Float).
      See Also:
    • CH1_SLOPE2

      public static final int CH1_SLOPE2
      The channel 1 calibration slope 2 attribute (Float).
      See Also:
    • CH1_INTERCEPT2

      public static final int CH1_INTERCEPT2
      The channel 1 calibration intercept 2 attribute (Float).
      See Also:
    • CH1_INTERSECTION

      public static final int CH1_INTERSECTION
      The channel 1 calibration intersection attribute (Long).
      See Also:
    • CH2_SLOPE1

      public static final int CH2_SLOPE1
      The channel 2 calibration slope 1 attribute (Float).
      See Also:
    • CH2_INTERCEPT1

      public static final int CH2_INTERCEPT1
      The channel 2 calibration intercept 1 attribute (Float).
      See Also:
    • CH2_SLOPE2

      public static final int CH2_SLOPE2
      The channel 2 calibration slope 2 attribute (Float).
      See Also:
    • CH2_INTERCEPT2

      public static final int CH2_INTERCEPT2
      The channel 2 calibration intercept 2 attribute (Float).
      See Also:
    • CH2_INTERSECTION

      public static final int CH2_INTERSECTION
      The channel 2 calibration intersection attribute (Long).
      See Also:
    • CH3A_SLOPE1

      public static final int CH3A_SLOPE1
      The channel 3a calibration slope 1 attribute (Float).
      See Also:
    • CH3A_INTERCEPT1

      public static final int CH3A_INTERCEPT1
      The channel 3a calibration intercept 1 attribute (Float).
      See Also:
    • CH3A_SLOPE2

      public static final int CH3A_SLOPE2
      The channel 3a calibration slope 2 attribute (Float).
      See Also:
    • CH3A_INTERCEPT2

      public static final int CH3A_INTERCEPT2
      The channel 3a calibration intercept 2 attribute (Float).
      See Also:
    • CH3A_INTERSECTION

      public static final int CH3A_INTERSECTION
      The channel 3a calibration intersection attribute (Long).
      See Also:
    • CH3B_COEFFICIENT1

      public static final int CH3B_COEFFICIENT1
      The channel 3b calibration coefficient 1 attribute (Float).
      See Also:
    • CH3B_COEFFICIENT2

      public static final int CH3B_COEFFICIENT2
      The channel 3b calibration coefficient 2 attribute (Float).
      See Also:
    • CH3B_COEFFICIENT3

      public static final int CH3B_COEFFICIENT3
      The channel 3b calibration coefficient 3 attribute (Float).
      See Also:
    • CH4_COEFFICIENT1

      public static final int CH4_COEFFICIENT1
      The channel 4 calibration coefficient 1 attribute (Float).
      See Also:
    • CH4_COEFFICIENT2

      public static final int CH4_COEFFICIENT2
      The channel 4 calibration coefficient 2 attribute (Float).
      See Also:
    • CH4_COEFFICIENT3

      public static final int CH4_COEFFICIENT3
      The channel 4 calibration coefficient 3 attribute (Float).
      See Also:
    • CH5_COEFFICIENT1

      public static final int CH5_COEFFICIENT1
      The channel 5 calibration coefficient 1 attribute (Float).
      See Also:
    • CH5_COEFFICIENT2

      public static final int CH5_COEFFICIENT2
      The channel 5 calibration coefficient 2 attribute (Float).
      See Also:
    • CH5_COEFFICIENT3

      public static final int CH5_COEFFICIENT3
      The channel 5 calibration coefficient 3 attribute (Float).
      See Also:
    • SCAN_LINE_QUALITY

      public static final int SCAN_LINE_QUALITY
      The scan line quality attribute (Long).
      See Also:
    • CALIBRATION_QUALITY_CH3B

      public static final int CALIBRATION_QUALITY_CH3B
      The calibration quality for channel 3b attribute (Integer).
      See Also:
    • CALIBRATION_QUALITY_CH4

      public static final int CALIBRATION_QUALITY_CH4
      The calibration quality for channel 4 attribute (Integer).
      See Also:
    • CALIBRATION_QUALITY_CH5

      public static final int CALIBRATION_QUALITY_CH5
      The calibration quality for channel 5 attribute (Integer).
      See Also:
    • SPACECRAFT_ALTITUDE

      public static final int SPACECRAFT_ALTITUDE
      The spacecraft altitude attribute (Float).
      See Also:
  • Constructor Details

    • ScanLineV2

      public ScanLineV2(int line, int start, int count) throws IOException
      Creates a new dataset scan line using the specified index.
      Parameters:
      line - the scan line index in the range [0..lines-1].
      start - the starting sensor data sample.
      count - the total number of sensor data samples. If the count is 0, no sensor data is read.
      Throws:
      IOException - if an error occurred reading the file data.
      See Also:
  • Method Details

    • getCloud

      public byte[] getCloud()
      Description copied from class: NOAA1bReader.ScanLine
      Gets the CLAVR cloud mask data.
      Specified by:
      getCloud in class NOAA1bReader.ScanLine
      Returns:
      an array of cloud mask data values.
    • getScanTime

      public long[] getScanTime()
      Gets the scan line time data. This implementation simply returns the same time for all data samples across the scan line. A more sophisticated method would compute separate times for each sample.
      Specified by:
      getScanTime in class NOAA1bReader.ScanLine
      Returns:
      an array of time data values in milliseconds.
    • getAttribute

      public Object getAttribute(int index)
      Description copied from class: NOAA1bReader.ScanLine
      Gets a scan line attribute.
      Specified by:
      getAttribute in class NOAA1bReader.ScanLine
      Parameters:
      index - the attribute index.
      Returns:
      the attribute as an object. Primitive types are wrapped in their corresponding objects.
    • isSensorDataUsable

      public boolean isSensorDataUsable()
      Description copied from class: NOAA1bReader.ScanLine
      Gets the sensor data usability flag.
      Specified by:
      isSensorDataUsable in class NOAA1bReader.ScanLine
    • isNavigationUsable

      public boolean isNavigationUsable()
      Description copied from class: NOAA1bReader.ScanLine
      Gets the navigation data usability flag.
      Specified by:
      isNavigationUsable in class NOAA1bReader.ScanLine
    • getCalibration

      protected float[] getCalibration(int channel)
      Description copied from class: NOAA1bReader.ScanLine
      Gets the set of line-specific calibration coefficients for the specified channel. The order of coefficients is not important, as the coefficients are simply used as a "calibration" signature for use in creating count versus calibrated value lookup tables.
      Specified by:
      getCalibration in class NOAA1bReader.ScanLine
      Parameters:
      channel - the channel for calibration coefficients, [1..5].
      Returns:
      an array of calibration coefficients.
    • calibrateChannel

      public float[] calibrateChannel(int[] countData, int channel)
      Description copied from class: NOAA1bReader.ScanLine
      Calibrates channel count data to scientific units. Visible channel data is calibrated to percent albedo and thermal data to degrees Kelvin.
      Specified by:
      calibrateChannel in class NOAA1bReader.ScanLine
      Parameters:
      countData - the count data as an integer array.
      channel - the channel to calibrate, [1..5].
      Returns:
      an array of calibrated sample values.
      See Also:
    • getRawNavigation

      public float[] getRawNavigation(int variable)
      Description copied from class: NOAA1bReader.ScanLine
      Gets the raw uninterpolated navigation data for the specified angle variable. All angles are measured in degrees.
      Specified by:
      getRawNavigation in class NOAA1bReader.ScanLine
      Parameters:
      variable - the navigation variable.
      Returns:
      an array of raw uninterpolated navigation angles.