terrenus.instrument
Class AbstractRadiometerCalibrator
java.lang.Object
terrenus.instrument.AbstractRadiometerCalibrator
- All Implemented Interfaces:
- RadiometerCalibrator
- Direct Known Subclasses:
- AVHRRCalibrator, MVISRCalibrator
public abstract class AbstractRadiometerCalibrator
- extends java.lang.Object
- implements RadiometerCalibrator
The AbstractRadiometerCalibrator
class implements
a scheme for organizing radiometer calibration records. A
call to the getCalibration(int)
method performs
calibration on a group of consecutive scan lines and caches
the record for later use. If no calibration can be performed
for a given group of lines, the nearest valid calibration
record (up to some limited number of line away) is used
instead.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRadiometerCalibrator
public AbstractRadiometerCalibrator(int lines,
int recordLines,
int recordCopyLimit)
- Creates a new calibrator.
- Parameters:
lines
- the number of scan lines to be calibrated.recordLines
- the number of scan lines to use to compute
each calibration record.recordCopyLimit
- the maximum number of records away to
copy a record when calibration cannot be computed for a
record.
getCalibration
public RadiometerCalibrator.Record getCalibration(int line)
throws java.io.IOException
- Description copied from interface:
RadiometerCalibrator
- Gets the calibration record for the specified scan line.
Generally calibration requires a number of radiometer scan
lines to compute. The returned record represents the best
available calibration data based on lines surrounding or
near the specified scan line.
- Specified by:
getCalibration
in interface RadiometerCalibrator
- Parameters:
line
- the line to retrieve calibration for.
- Returns:
- the calibration record or null if no record is
available.
- Throws:
java.io.IOException
- if a problem occurred accessing the data.