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);
128 _history.add(
"ReverseClockStatistics(File["+tfile+
129 "],Profile["+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!)");
175 o <<
"# History = " <<
_history << std::endl;
178 << std::setw(
_fmtWidth+1) <<
"Applied\n";
180 for (
int i = 0 ; i <
_data.dim() ; i++) {
const HiVector & ref() const
Return data via a const reference.
double StandardDeviation() const
Computes and returns the standard deviation.
int _fmtWidth
Default field with of double.
HiVector _data
Data vector.
int toInt(const QString &string)
Global function to convert from a string to an integer.
bool profileExists(const QString &profile) const
Checks existance of a database user profile.
Compute a low pass filter from a Module class content.
HiHistory _history
Hierarchial component history.
virtual void printOn(std::ostream &o) const
Virtual dump of data processing vectors.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
double toDouble(const QString &string)
Global function to convert from a string to a double.
BigInt HisPixels() const
Returns the total number of high instrument saturation (HIS) pixels encountered.
BigInt NullPixels() const
Returns the total number of NULL pixels encountered.
A DbProfile is a container for access parameters to a database.
const HiHistory & History() const
Return recorded history of events.
QString formatDbl(const double &value) const
Properly format values that could be special pixels.
This class is used to accumulate statistics on double arrays.
const DbProfile getProfile(const QString &name="") const
Retrieves the specified access profile.
void init(HiCalData &cal, const HiCalConf &conf)
Initialize and compute data solution.
BigInt LisPixels() const
Returns the total number of low instrument saturation (LIS) pixels encountered.
void Reset()
Reset all accumulators and counters to zero.
Module manages HiRISE calibration vectors from various sources.
Processes Reverse Clock calibration data (ZeroReverse Module)
const Statistics & Stats() const
Return statistics for raw Reverse Clock buffer.
Container for cube-like labels.
bool wasTriggered() const
Specifies if the input trigger conditions were met.
HiVector averageLines(const HiMatrix &m, int sline=0, int eline=-1)
Reduces by averaging specified lines from a buffer.
virtual ~ZeroReverse()
Destructor.
DbAccess manages programatic access to a database through profiles.
Namespace for ISIS/Bullet specific routines.
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.
QString Name() const
Returns the name of this property.
HiMatrix cropLines(const HiMatrix &m, int sline, int eline)
Crop specified lines from a buffer.
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Container for HiRISE calibration data.
QString ToString(const T &value)
Helper function to convert values to strings.
double Average() const
Computes and returns the average.
TNT::Array2D< double > HiMatrix
2-D buffer
TNT::Array1D< double > HiVector
1-D Buffer