edu.wisc.ssec.mcidas
Class CalibratorFactory
- java.lang.Object
-
- edu.wisc.ssec.mcidas.CalibratorFactory
-
public final class CalibratorFactory extends java.lang.ObjectUtility class for creatingCalibratorinstances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static CalibratorgetCalibrator(int id, int[] cal)Get an appropriateCalibratorfor the sensor id provided.static CalibratorgetCalibrator(int id, int srcType, int[] cal)Get an appropriateCalibratorfor the sensor id provided.static booleanhasCalibrator(int id)Check if there is aCalibratorimplemented for a sensor.
-
-
-
Method Detail
-
getCalibrator
public static final Calibrator getCalibrator(int id, int[] cal) throws CalibratorException
Get an appropriateCalibratorfor the sensor id provided. This assumes a RAW source data format. See the McIDAS Users Guide Appendix C for a table of sensor ids.- Parameters:
id- Sensor id from the directory blockcal- Calibration block used to initialize theCalibrator- Returns:
- initialized
Calibratorwith a source calibration type of RAW. - Throws:
CalibratorException- on an error initializing the object.
-
getCalibrator
public static final Calibrator getCalibrator(int id, int srcType, int[] cal) throws CalibratorException
Get an appropriateCalibratorfor the sensor id provided. See the McIDAS Users Guide Appendix C for a table of sensor ids.- Parameters:
id- Sensor id from the directory blocksrcType- the source data type from the directory blockcal- Calibration block used to initialize theCalibrator- Returns:
- initialized
Calibrator. - Throws:
CalibratorException- on an error initializing the object or if the sensor is unknown.
-
hasCalibrator
public static final boolean hasCalibrator(int id)
Check if there is aCalibratorimplemented for a sensor.- Parameters:
id- Id of the sensor from the McIDAS Users Guide Appendix C- Returns:
- True if there is an implemented
Calibrator, false otherwise. see The McIDAS Users Guide
-
-
DMelt 3.0 © DataMelt by jWork.ORG