Documentation of 'edu.wisc.ssec.mcidas.CalibratorDefault' Java class
CalibratorDefault
edu.wisc.ssec.mcidas

Class CalibratorDefault

  • All Implemented Interfaces:
    Calibrator
    Direct Known Subclasses:
    CalibratorFY2


    public class CalibratorDefault
    extends java.lang.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.
    • Field Detail

      • isPreCalibrated

        public boolean isPreCalibrated
    • Constructor Detail

      • CalibratorDefault

        public CalibratorDefault(java.io.DataInputStream dis,
                                 AncillaryData ad)
                          throws java.io.IOException
        constructor - does nothing for default calibrator
        Parameters:
        dis - data input stream
        ad - AncillaryData object
        Throws:
        java.io.IOException
    • Method Detail

      • 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 buffer
        band - channel/band number
        calTypeOut - 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 value
        band - channel/band number
        calTypeOut - units to convert input buffer to
      • calibratedList

        public int[] calibratedList(int band,
                                    boolean isPreCal)
        Specified by:
        calibratedList in interface Calibrator
      • calibratedUnit

        public java.lang.String calibratedUnit(int calType)
        Specified by:
        calibratedUnit in interface Calibrator
      • convertBritToTemp

        public float convertBritToTemp(int inVal)
        convert a gray scale value to brightness temperature
        Specified by:
        convertBritToTemp in interface Calibrator
        Parameters:
        inVal - input data value
      • convertBritToTemp

        public float[] convertBritToTemp(float[] inputData)
        convert a gray scale value to brightness temperature
        Specified by:
        convertBritToTemp in interface Calibrator
        Parameters:
        inputData - input data array
      • getIsPreCalibrated

        public boolean getIsPreCalibrated()
        return isPrecalibrated value
        Specified by:
        getIsPreCalibrated in interface Calibrator
      • setIsPreCalibrated

        public void setIsPreCalibrated(boolean isPrecalibrated)
        set isPrecalibrated value
        Specified by:
        setIsPreCalibrated in interface Calibrator

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.