public class CalibratorDefault extends Object implements Calibrator
Calibrator.CalibratorFY2
Modifier and Type | Field and Description |
---|---|
protected static int |
curCalType |
boolean |
isPreCalibrated |
CAL_ALB, CAL_BRIT, CAL_MAX, CAL_MIN, CAL_NONE, CAL_RAD, CAL_RAW, CAL_REFL, 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_GOES14_IMGR, SENSOR_GOES14_SNDR, SENSOR_GOES15_IMGR, SENSOR_GOES15_SNDR, SENSOR_GOES16_IMGR, SENSOR_GOES16_SNDR, SENSOR_GOES8_IMGR, SENSOR_GOES8_SNDR, SENSOR_GOES9_IMGR, SENSOR_GOES9_SNDR, SENSOR_MSG10_IMGR, SENSOR_MSG8_IMGR, SENSOR_MSG9_IMGR
Constructor and Description |
---|
CalibratorDefault(DataInputStream dis,
AncillaryData ad)
constructor - does nothing for default calibrator
|
Modifier and Type | Method and Description |
---|---|
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[] |
calibratedList(int band,
boolean isPreCal) |
String |
calibratedUnit(int calType) |
float[] |
convertBritToTemp(float[] inputData)
convert a gray scale value to brightness temperature
|
float |
convertBritToTemp(int inVal)
convert a gray scale value to brightness temperature
|
boolean |
getIsPreCalibrated()
return isPrecalibrated value
|
int |
setCalType(int calType)
set calibration type of current (input) data
|
void |
setIsPreCalibrated(boolean isPrecalibrated)
set isPrecalibrated value
|
protected static int curCalType
public boolean isPreCalibrated
public CalibratorDefault(DataInputStream dis, AncillaryData ad) throws IOException
dis
- data input streamad
- AncillaryData objectIOException
public int setCalType(int calType)
setCalType
in interface Calibrator
calType
- one of the types defined in Calibrator interfacepublic float[] calibrate(float[] inputData, int band, int calTypeOut)
calibrate
in interface Calibrator
inputData
- input data bufferband
- channel/band numbercalTypeOut
- units to convert input buffer topublic float calibrate(float inputPixel, int band, int calTypeOut)
calibrate
in interface Calibrator
inputPixel
- input data valueband
- channel/band numbercalTypeOut
- units to convert input buffer topublic int[] calibratedList(int band, boolean isPreCal)
calibratedList
in interface Calibrator
public String calibratedUnit(int calType)
calibratedUnit
in interface Calibrator
public float convertBritToTemp(int inVal)
convertBritToTemp
in interface Calibrator
inVal
- input data valuepublic float[] convertBritToTemp(float[] inputData)
convertBritToTemp
in interface Calibrator
inputData
- input data arraypublic boolean getIsPreCalibrated()
getIsPreCalibrated
in interface Calibrator
public void setIsPreCalibrated(boolean isPrecalibrated)
setIsPreCalibrated
in interface Calibrator
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.