Package noaa.coastwatch.io
Class NOAA1bV2Reader.ScanLineV2
java.lang.Object
noaa.coastwatch.io.NOAA1bReader.ScanLine
noaa.coastwatch.io.NOAA1bV2Reader.ScanLineV2
- Direct Known Subclasses:
NOAA1bV3Reader.ScanLineV3
- Enclosing class:
- NOAA1bV2Reader
The scan line version 2 class is a scan line that can read,
calibrate, and navigate NOAA-KLM data.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The calibration quality for channel 3b attribute (Integer).static final int
The calibration quality for channel 4 attribute (Integer).static final int
The calibration quality for channel 5 attribute (Integer).static final int
The channel 1 calibration intercept 1 attribute (Float).static final int
The channel 1 calibration intercept 2 attribute (Float).static final int
The channel 1 calibration intersection attribute (Long).static final int
The channel 1 calibration slope 1 attribute (Float).static final int
The channel 1 calibration slope 2 attribute (Float).static final int
The channel 2 calibration intercept 1 attribute (Float).static final int
The channel 2 calibration intercept 2 attribute (Float).static final int
The channel 2 calibration intersection attribute (Long).static final int
The channel 2 calibration slope 1 attribute (Float).static final int
The channel 2 calibration slope 2 attribute (Float).static final int
The channel 3a calibration intercept 1 attribute (Float).static final int
The channel 3a calibration intercept 2 attribute (Float).static final int
The channel 3a calibration intersection attribute (Long).static final int
The channel 3a calibration slope 1 attribute (Float).static final int
The channel 3a calibration slope 2 attribute (Float).static final int
The channel 3b calibration coefficient 1 attribute (Float).static final int
The channel 3b calibration coefficient 2 attribute (Float).static final int
The channel 3b calibration coefficient 3 attribute (Float).static final int
The channel 4 calibration coefficient 1 attribute (Float).static final int
The channel 4 calibration coefficient 2 attribute (Float).static final int
The channel 4 calibration coefficient 3 attribute (Float).static final int
The channel 5 calibration coefficient 1 attribute (Float).static final int
The channel 5 calibration coefficient 2 attribute (Float).static final int
The channel 5 calibration coefficient 3 attribute (Float).protected static final int
The navigation data geometry offset.protected static final int
The navigation data location offset.static final int
The navigation status attribute (Long).static final int
The scan line quality attribute (Long).static final int
The spacecraft altitude attribute (Float).Fields inherited from class noaa.coastwatch.io.NOAA1bReader.ScanLine
AVHRR_CH1, AVHRR_CH2, AVHRR_CH3, AVHRR_CH3A, AVHRR_CH4, AVHRR_CH5, CH3_SELECT, CLOUD, count, data, LATITUDE, LONGITUDE, NAVIGATION_VALUES, QUALITY_INDICATOR, RELATIVE_AZIMUTH, SATELLITE_ZENITH, SCAN_LINE_DAY, SCAN_LINE_MILLISECOND, SCAN_LINE_NUMBER, SCAN_LINE_YEAR, SCAN_TIME, SOLAR_ZENITH, start
-
Constructor Summary
ConstructorDescriptionScanLineV2
(int line, int start, int count) Creates a new dataset scan line using the specified index. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
calibrateChannel
(int[] countData, int channel) Calibrates channel count data to scientific units.getAttribute
(int index) Gets a scan line attribute.protected float[]
getCalibration
(int channel) Gets the set of line-specific calibration coefficients for the specified channel.byte[]
getCloud()
Gets the CLAVR cloud mask data.float[]
getRawNavigation
(int variable) Gets the raw uninterpolated navigation data for the specified angle variable.long[]
Gets the scan line time data.boolean
Gets the navigation data usability flag.boolean
Gets the sensor data usability flag.Methods inherited from class noaa.coastwatch.io.NOAA1bReader.ScanLine
getChannel, getIndex, getNavigation, getRawChannel, getRawData, interpolateNavigation
-
Field Details
-
CH1_SLOPE1
public static final int CH1_SLOPE1The channel 1 calibration slope 1 attribute (Float).- See Also:
-
CH1_INTERCEPT1
public static final int CH1_INTERCEPT1The channel 1 calibration intercept 1 attribute (Float).- See Also:
-
CH1_SLOPE2
public static final int CH1_SLOPE2The channel 1 calibration slope 2 attribute (Float).- See Also:
-
CH1_INTERCEPT2
public static final int CH1_INTERCEPT2The channel 1 calibration intercept 2 attribute (Float).- See Also:
-
CH1_INTERSECTION
public static final int CH1_INTERSECTIONThe channel 1 calibration intersection attribute (Long).- See Also:
-
CH2_SLOPE1
public static final int CH2_SLOPE1The channel 2 calibration slope 1 attribute (Float).- See Also:
-
CH2_INTERCEPT1
public static final int CH2_INTERCEPT1The channel 2 calibration intercept 1 attribute (Float).- See Also:
-
CH2_SLOPE2
public static final int CH2_SLOPE2The channel 2 calibration slope 2 attribute (Float).- See Also:
-
CH2_INTERCEPT2
public static final int CH2_INTERCEPT2The channel 2 calibration intercept 2 attribute (Float).- See Also:
-
CH2_INTERSECTION
public static final int CH2_INTERSECTIONThe channel 2 calibration intersection attribute (Long).- See Also:
-
CH3A_SLOPE1
public static final int CH3A_SLOPE1The channel 3a calibration slope 1 attribute (Float).- See Also:
-
CH3A_INTERCEPT1
public static final int CH3A_INTERCEPT1The channel 3a calibration intercept 1 attribute (Float).- See Also:
-
CH3A_SLOPE2
public static final int CH3A_SLOPE2The channel 3a calibration slope 2 attribute (Float).- See Also:
-
CH3A_INTERCEPT2
public static final int CH3A_INTERCEPT2The channel 3a calibration intercept 2 attribute (Float).- See Also:
-
CH3A_INTERSECTION
public static final int CH3A_INTERSECTIONThe channel 3a calibration intersection attribute (Long).- See Also:
-
CH3B_COEFFICIENT1
public static final int CH3B_COEFFICIENT1The channel 3b calibration coefficient 1 attribute (Float).- See Also:
-
CH3B_COEFFICIENT2
public static final int CH3B_COEFFICIENT2The channel 3b calibration coefficient 2 attribute (Float).- See Also:
-
CH3B_COEFFICIENT3
public static final int CH3B_COEFFICIENT3The channel 3b calibration coefficient 3 attribute (Float).- See Also:
-
CH4_COEFFICIENT1
public static final int CH4_COEFFICIENT1The channel 4 calibration coefficient 1 attribute (Float).- See Also:
-
CH4_COEFFICIENT2
public static final int CH4_COEFFICIENT2The channel 4 calibration coefficient 2 attribute (Float).- See Also:
-
CH4_COEFFICIENT3
public static final int CH4_COEFFICIENT3The channel 4 calibration coefficient 3 attribute (Float).- See Also:
-
CH5_COEFFICIENT1
public static final int CH5_COEFFICIENT1The channel 5 calibration coefficient 1 attribute (Float).- See Also:
-
CH5_COEFFICIENT2
public static final int CH5_COEFFICIENT2The channel 5 calibration coefficient 2 attribute (Float).- See Also:
-
CH5_COEFFICIENT3
public static final int CH5_COEFFICIENT3The channel 5 calibration coefficient 3 attribute (Float).- See Also:
-
SCAN_LINE_QUALITY
public static final int SCAN_LINE_QUALITYThe scan line quality attribute (Long).- See Also:
-
CALIBRATION_QUALITY_CH3B
public static final int CALIBRATION_QUALITY_CH3BThe calibration quality for channel 3b attribute (Integer).- See Also:
-
CALIBRATION_QUALITY_CH4
public static final int CALIBRATION_QUALITY_CH4The calibration quality for channel 4 attribute (Integer).- See Also:
-
CALIBRATION_QUALITY_CH5
public static final int CALIBRATION_QUALITY_CH5The calibration quality for channel 5 attribute (Integer).- See Also:
-
NAVIGATION_STATUS
public static final int NAVIGATION_STATUSThe navigation status attribute (Long).- See Also:
-
SPACECRAFT_ALTITUDE
public static final int SPACECRAFT_ALTITUDEThe spacecraft altitude attribute (Float).- See Also:
-
NAVIGATION_GEOMETRY_OFFSET
protected static final int NAVIGATION_GEOMETRY_OFFSETThe navigation data geometry offset.- See Also:
-
NAVIGATION_LOCATION_OFFSET
protected static final int NAVIGATION_LOCATION_OFFSETThe navigation data location offset.- See Also:
-
-
Constructor Details
-
ScanLineV2
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 classNOAA1bReader.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 classNOAA1bReader.ScanLine
- Returns:
- an array of time data values in milliseconds.
-
getAttribute
Description copied from class:NOAA1bReader.ScanLine
Gets a scan line attribute.- Specified by:
getAttribute
in classNOAA1bReader.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 classNOAA1bReader.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 classNOAA1bReader.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 classNOAA1bReader.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:
-