|
Isis Developer Reference
|
Go to the documentation of this file.
79 void init(
const HiCalConf &conf) {
101 if (_coeffMat.dim2() != 3) {
102 QString msg =
"Zero Dark Rate coefficient CSV has [" +
toString(_coeffMat.dim2()) +
103 "] columns, expected 3.";
106 if (_coeffMat.dim1() != samples) {
107 QString msg =
"Zero Dark Rate coefficient CSV has [" +
toString(_coeffMat.dim1()) +
108 "] rows, expected " +
toString(samples) +
".";
113 double fpa_py_temp =
ToDouble(prof(
"FpaPositiveYTemperature"));
114 double fpa_my_temp =
ToDouble(prof(
"FpaNegativeYTemperature"));
115 _temp = (fpa_py_temp+fpa_my_temp) / 2.0;
120 for (
int j = 0 ; j < samples ; j++) {
121 _data[j] = _coeffMat[j][0] * exp(_coeffMat[j][1]*_temp) + _coeffMat[j][2];
126 for (
int i = 0 ; i <
_data.dim() ; i++ ) {
136 virtual void printOn(std::ostream &o)
const {
137 o <<
"# History = " <<
_history << std::endl;
139 o << std::setw(
_fmtWidth+1) <<
"FPA_Temperature\n"
140 << std::setw(
_fmtWidth+1) <<
"ZeroDarkRate\n";
142 for (
int i = 0 ; i <
_data.dim() ; i++) {
HiHistory _history
Hierarchial component history.
Definition: Module.h:152
void clear()
Definition: HiCalTypes.h:65
int _fmtWidth
Default field with of double.
Definition: Module.h:153
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
virtual ~ZeroDarkRate()
Destructor.
Definition: ZeroDarkRate.h:57
QString Name() const
Returns the name of this property.
Definition: DbProfile.h:104
QString ToString(const T &value)
Helper function to convert values to strings.
Definition: HiCalUtil.h:246
ZeroDarkRate(const HiCalConf &conf)
Definition: ZeroDarkRate.h:52
Module manages HiRISE calibration vectors from various sources.
Definition: Module.h:39
TNT::Array2D< double > HiMatrix
2-D buffer
Definition: HiCalTypes.h:28
void Reset()
Reset all accumulators and counters to zero.
Definition: Statistics.cpp:113
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Provides generalized access to HiRISE calibration CSV files.
Definition: LoadCSV.h:52
const Statistics & Stats() const
Return statistics for filtered - raw Buffer.
Definition: ZeroDarkRate.h:64
HiVector _data
Data vector.
Definition: Module.h:151
QString formatDbl(const double &value) const
Properly format values that could be special pixels.
Definition: Module.h:169
HiMatrix getMatrix() const
Definition: LoadCSV.cpp:201
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
ZeroDarkRate()
Definition: ZeroDarkRate.h:51
double StandardDeviation() const
Computes and returns the standard deviation.
Definition: Statistics.cpp:312
int ToInteger(const T &value)
Helper function to convert values to Integers.
Definition: HiCalUtil.h:222
A DbProfile is a container for access parameters to a database.
Definition: DbProfile.h:51
TNT::Array1D< double > HiVector
1-D Buffer
Definition: HiCalTypes.h:27
Isis exception class.
Definition: IException.h:91
void add(const QString &event)
Definition: HiCalTypes.h:55
double Average() const
Computes and returns the average.
Definition: Statistics.cpp:300
double ToDouble(const T &value)
Helper function to convert values to doubles.
Definition: HiCalUtil.h:234
Computes a complex dark subtraction component (ZeroDarkRate module)
Definition: ZeroDarkRate.h:47
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126