edu.wisc.ssec.mcidas
Class CalibratorDefault
java.lang.Object
edu.wisc.ssec.mcidas.CalibratorDefault
- All Implemented Interfaces:
- Calibrator
- Direct Known Subclasses:
- CalibratorFY2
public class CalibratorDefault
- extends Object
- implements Calibrator
CalibratorDefault creates a Calibrator object designed to
act in the absence of a Calibrator for a particular sensor.
In other words, if a sensor is not supported yet, just pass
the input value on as the calibrated value.
- Version:
- 1.2 6 Aug 1999
- Author:
- Tommy Jasmin, SSEC
Fields inherited from interface edu.wisc.ssec.mcidas.Calibrator |
CAL_ALB, CAL_BRIT, CAL_MAX, CAL_MIN, CAL_NONE, CAL_RAD, CAL_RAW, CAL_TEMP, SENSOR_FY2D, SENSOR_FY2E, SENSOR_FY2F, SENSOR_FY2G, SENSOR_FY2H, SENSOR_GOES10_IMGR, SENSOR_GOES10_SNDR, SENSOR_GOES12_IMGR, SENSOR_GOES12_SNDR, SENSOR_GOES13_IMGR, SENSOR_GOES13_SNDR, SENSOR_GOES8_IMGR, SENSOR_GOES8_SNDR, SENSOR_GOES9_IMGR, SENSOR_GOES9_SNDR, SENSOR_MSG_IMGR |
Method Summary |
float[] |
calibrate(float[] inputData,
int band,
int calTypeOut)
calibrate data buffer to specified units. |
float |
calibrate(float inputPixel,
int band,
int calTypeOut)
calibrate single value to specified units. |
int |
setCalType(int calType)
set calibration type of current (input) data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
curCalType
protected static int curCalType
CalibratorDefault
public CalibratorDefault(DataInputStream dis,
AncillaryData ad)
throws IOException
- constructor - does nothing for default calibrator
- Parameters:
dis
- data input streamad
- AncillaryData object
- Throws:
IOException
setCalType
public int setCalType(int calType)
- set calibration type of current (input) data
- Specified by:
setCalType
in interface Calibrator
- Parameters:
calType
- one of the types defined in Calibrator interface
calibrate
public float[] calibrate(float[] inputData,
int band,
int calTypeOut)
- calibrate data buffer to specified units.
- Specified by:
calibrate
in interface Calibrator
- Parameters:
inputData
- input data bufferband
- channel/band numbercalTypeOut
- units to convert input buffer to
calibrate
public float calibrate(float inputPixel,
int band,
int calTypeOut)
- calibrate single value to specified units.
- Specified by:
calibrate
in interface Calibrator
- Parameters:
inputPixel
- input data valueband
- channel/band numbercalTypeOut
- units to convert input buffer to