105       void init(
HiCalData &cal, 
const HiCalConf &conf) {
   106         DbProfile prof = conf.getMatrixProfile();
   110         int line0 = 
toInt(
ConfKey(prof,
"ZeroReverseFirstLine",QString(
"0")));
   111         int lineN = 
toInt(
ConfKey(prof,
"ZeroReverseLastLine",QString(
"19")));
   112         QString tfile= conf.getMatrixSource(
"ReverseClockStatistics",prof);
   116         _stats.
AddData(revclk[0], revclk.dim1()*revclk.dim2());
   126        DbAccess triggers(
Pvl(tfile).findObject(
"ReverseClockStatistics"));
   127        QString tprofName = conf.resolve(
"{FILTER}{CCD}_{CHANNEL}_{BIN}",prof); 
   129                     "],Profile["+tprofName+
"])");
   132        if (triggers.profileExists(tprofName)) {
   133          DbProfile tprof(prof, triggers.getProfile(tprofName), tprofName);
   141                       "],RevStdDevTrigger["+
ToString(revstddev)+
   142                       "],RevLisTolerance["+
ToString(lisTol)+
   143                       "],RevHisTolerance["+
ToString(hisTol)+
   144                       "],RevNulTolerance["+
ToString(nulTol)+ 
"])");
   151            _history.
add(
"Trigger(True - Reverse Clock set to constant,"   152                         "ReverseClock["+
ToString(revmean)+
"])"); 
   155            _history.
add(
"Trigger(False - Reverse Clock processing invoked)");
   160          _history.
add(
"Trigger(Profile["+tprofName+
"],NotFound!)");
   165         SplineFill spline(_revClock, 
_history);
   166         _data = spline.ref();
   174       virtual void printOn(std::ostream &o)
 const {
   175         o << 
"#  History = " << 
_history << std::endl;
   178           << std::setw(
_fmtWidth+1) << 
"Applied\n";
   180         for (
int i = 0 ; i < 
_data.dim() ; i++) {
 
double StandardDeviation() const
Computes and returns the standard deviation. 
Definition: Statistics.cpp:325
 
int _fmtWidth
Default field with of double. 
Definition: Module.h:168
 
ZeroReverse()
Definition: ZeroReverse.h:64
 
HiVector _data
Data vector. 
Definition: Module.h:166
 
int toInt(const QString &string)
Global function to convert from a string to an integer. 
Definition: IString.cpp:108
 
void clear()
Definition: HiCalTypes.h:78
 
HiHistory _history
Hierarchial component history. 
Definition: Module.h:167
 
QString toString(bool boolToConvert)
Global function to convert a boolean to a string. 
Definition: IString.cpp:226
 
double toDouble(const QString &string)
Global function to convert from a string to a double. 
Definition: IString.cpp:164
 
BigInt HisPixels() const
Returns the total number of high instrument saturation (HIS) pixels encountered. 
Definition: Statistics.cpp:511
 
BigInt NullPixels() const
Returns the total number of NULL pixels encountered. 
Definition: Statistics.cpp:478
 
A DbProfile is a container for access parameters to a database. 
Definition: DbProfile.h:65
 
QString formatDbl(const double &value) const
Properly format values that could be special pixels. 
Definition: Module.h:184
 
This class is used to accumulate statistics on double arrays. 
Definition: Statistics.h:107
 
HiMatrix getReverseClock()
Definition: HiCalData.h:96
 
BigInt LisPixels() const
Returns the total number of low instrument saturation (LIS) pixels encountered. 
Definition: Statistics.cpp:489
 
void Reset()
Reset all accumulators and counters to zero. 
Definition: Statistics.cpp:126
 
Module manages HiRISE calibration vectors from various sources. 
Definition: Module.h:54
 
Processes Reverse Clock calibration data (ZeroReverse Module) 
Definition: ZeroReverse.h:60
 
const Statistics & Stats() const
Return statistics for raw Reverse Clock buffer. 
Definition: ZeroReverse.h:78
 
Container for cube-like labels. 
Definition: Pvl.h:135
 
bool wasTriggered() const
Specifies if the input trigger conditions were met. 
Definition: ZeroReverse.h:88
 
HiVector averageLines(const HiMatrix &m, int sline=0, int eline=-1)
Reduces by averaging specified lines from a buffer. 
Definition: HiCalUtil.h:171
 
virtual ~ZeroReverse()
Destructor. 
Definition: ZeroReverse.h:71
 
void add(const QString &event)
Definition: HiCalTypes.h:68
 
DbAccess manages programatic access to a database through profiles. 
Definition: DbAccess.h:120
 
Namespace for ISIS/Bullet specific routines. 
Definition: Apollo.h:31
 
T ConfKey(const DbProfile &conf, const QString &keyname, const T &defval, int index=0)
Find a keyword in a profile using default for non-existant keywords. 
Definition: HiCalUtil.h:219
 
QString Name() const
Returns the name of this property. 
Definition: DbProfile.h:118
 
HiMatrix cropLines(const HiMatrix &m, int sline, int eline)
Crop specified lines from a buffer. 
Definition: HiCalUtil.h:125
 
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters. 
Definition: Statistics.cpp:154
 
Container for HiRISE calibration data. 
Definition: HiCalData.h:50
 
QString ToString(const T &value)
Helper function to convert values to strings. 
Definition: HiCalUtil.h:260
 
double Average() const
Computes and returns the average. 
Definition: Statistics.cpp:313
 
ZeroReverse(HiCalData &cal, const HiCalConf &conf)
Definition: ZeroReverse.h:65
 
TNT::Array2D< double > HiMatrix
2-D buffer 
Definition: HiCalTypes.h:41
 
TNT::Array1D< double > HiVector
1-D Buffer 
Definition: HiCalTypes.h:40