1 #ifndef GainUnitConversion_h 2 #define GainUnitConversion_h 60 Module(
"GainUnitConversion"), _units(units) {
70 void init(HiCalConf &conf) {
75 double sed =
ToDouble(prof(
"ScanExposureDuration"));
78 double au = conf.sunDistanceAU();
80 double suncorr = 1.5 / au;
83 double zbin =
ToDouble(prof(
"GainUnitConversionBinFactor"));
88 double ziof = (zbin * ztemp) * (sed * 1.0e-6) * suncorr;
94 else if (
IsEqual(_units,
"DN/US") ) {
100 _history.add(
"Units[DNs/microsecond]");
123 double zgain =
ToDouble(prof(
"FilterGainCorrection"));
126 double fpa_py_temp =
ToDouble(prof(
"FpaPositiveYTemperature"));
127 double fpa_my_temp =
ToDouble(prof(
"FpaNegativeYTemperature"));
128 double T = (fpa_py_temp+fpa_my_temp) / 2.0;
131 double baseT =
ToDouble(prof(
"IoverFbasetemperature"));
134 double QEpcntC =
ToDouble(prof(
"QEpercentincreaseperC"));
137 double absGainTdi =
ToDouble(prof(
"AbsGain_TDI128"));
140 double QETD = zgain * ( 1.0 + (T - baseT) * QEpcntC * absGainTdi);
double getTempDepGain(const HiCalConf &conf, const DbProfile &prof)
Compute CalFact, CCD QE, Temperature I/F dependancy.
HiVector _data
Data vector.
HiHistory _history
Hierarchial component history.
A DbProfile is a container for access parameters to a database.
bool IsEqual(const QString &v1, const QString &v2="TRUE")
Shortened string equality test.
virtual ~GainUnitConversion()
Destructor.
Module manages HiRISE calibration vectors from various sources.
Computes units parameters for HiRISE data calibration (Ziof Module)
double ToDouble(const T &value)
Helper function to convert values to doubles.
Namespace for ISIS/Bullet specific routines.
QString Name() const
Returns the name of this property.
QString ToString(const T &value)
Helper function to convert values to strings.
TNT::Array1D< double > HiVector
1-D Buffer