edu.wisc.ssec.mcidas
Class CalibratorFactory

java.lang.Object
  extended by edu.wisc.ssec.mcidas.CalibratorFactory

public final class CalibratorFactory
extends Object

Utility class for creating Calibrator instances.

Version:
$Id: CalibratorFactory.java,v 1.7 2009-05-06 18:45:53 rickk Exp $
Author:
Bruce Flynn, SSEC

Method Summary
static Calibrator getCalibrator(int id, int[] cal)
          Get an appropriate Calibrator for the sensor id provided.
static Calibrator getCalibrator(int id, int srcType, int[] cal)
          Get an appropriate Calibrator for the sensor id provided.
static boolean hasCalibrator(int id)
          Check if there is a Calibrator implemented for a sensor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCalibrator

public static final Calibrator getCalibrator(int id,
                                             int[] cal)
                                      throws CalibratorException
Get an appropriate Calibrator for 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 block
cal - Calibration block used to initialize the Calibrator
Returns:
initialized Calibrator with 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 appropriate Calibrator for the sensor id provided. See the McIDAS Users Guide Appendix C for a table of sensor ids.

Parameters:
id - Sensor id from the directory block
srcType - the source data type from the directory block
cal - Calibration block used to initialize the Calibrator
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 a Calibrator implemented 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