Changeset 2958 for trunk/src/STCalibration.cpp
- Timestamp:
- 06/26/14 18:08:46 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STCalibration.cpp
r2955 r2958 58 58 ROArrayColumn<uChar> flagCol(scantable_->table(), "FLAGTRA"); 59 59 ROScalarColumn<uInt> freqidCol(scantable_->table(), "FREQ_ID"); 60 ROScalarColumn<uInt> flagrowCol(scantable_->table(), "FLAGROW"); 61 Vector<uInt> flagrow = flagrowCol.getColumn(); 60 62 61 63 // dummy Tsys: the following process doesn't need Tsys but RowAccumulator … … 78 80 else if (len == 1) { 79 81 uInt irow = rows[0]; 80 appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), current.asuInt("POLNO"), 81 freqidCol(irow), timeSec[irow], elevation[irow], specCol(irow), 82 flagCol(irow)); 82 if (flagrow[irow] == 0) { 83 appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), current.asuInt("POLNO"), 84 freqidCol(irow), timeSec[irow], elevation[irow], specCol(irow), 85 flagCol(irow)); 86 } 83 87 iter.next(); 84 88 continue; … … 107 111 convertArray(bflag, flag); 108 112 specCol.get(irow, spec); 109 if ( !allEQ(bflag,True) )113 if ( !allEQ(bflag,True) && flagrow[irow] == 0 ) 110 114 acc.add( spec, !bflag, tsys, intervalSec[irow], timeSec[irow] ) ; 111 115 timeCen += timeSec[irow]; … … 131 135 const uChar userFlag = 1 << 7; 132 136 for (uInt k = 0; k < flag.nelements(); ++k) { 133 if (mask[k] == True)137 if (mask[k] == False) 134 138 flag[k] = userFlag; 135 139 }
Note: See TracChangeset
for help on using the changeset viewer.