Source
116
116
//
117
117
// getSumOfCFWeights() returns the sum-of-weight appropriate for
118
118
// computing sensitivity patterns (which could be different from
119
119
// the data-sum-of-weights.
120
120
//
121
121
122
122
// USEFUL DEBUG MESSAGE
123
123
//cerr << "SumCFWt: " << getSumOfCFWeights() << " " << max(wtBuf) << " " << sensitivityPatternQualifier_p << endl;
124
124
for(wtImIter.reset(); !wtImIter.atEnd(); wtImIter++)
125
125
{
126
-
Int pol_l=wtImIter.position()(2), chan_l=wtImIter.position()(3);
127
-
pol_l=pol_l; chan_l=chan_l; // Dummy statements to supress silly compiler warnings
126
+
// Int pol_l=wtImIter.position()(2), chan_l=wtImIter.position()(3);
128
127
// Lets write some mildly obfuscated code ~[8-)
129
128
//if ((sensitivityPatternQualifier_p == -1) && (doSumWtNorm))
130
129
// sumwt_l = ((sumwt_l = getSumOfCFWeights()(pol_l,chan_l))==0)?1.0:sumwt_l;
131
130
132
131
//sumwt_l = getSumOfCFWeights()(pol_l,chan_l);
133
132
134
133
wtImIter.rwCursor() = (wtImIter.rwCursor()
135
134
*Float(sizeX)*Float(sizeY)
136
135
//U /sumwt_l
137
136
);