Changeset 2955 for trunk/src/STCalibration.cpp
- Timestamp:
- 06/25/14 15:28:36 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STCalibration.cpp
r2916 r2955 79 79 uInt irow = rows[0]; 80 80 appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), current.asuInt("POLNO"), 81 freqidCol(irow), timeSec[irow], elevation[irow], specCol(irow)); 81 freqidCol(irow), timeSec[irow], elevation[irow], specCol(irow), 82 flagCol(irow)); 82 83 iter.next(); 83 84 continue; … … 126 127 timeCen /= (Double)count * 86400.0; // sec->day 127 128 elCen /= (Float)count; 128 appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), current.asuInt("POLNO"), 129 freqidCol(irow), timeCen, elCen, acc.getSpectrum()); 129 const Vector<Bool> &mask = acc.getMask(); 130 Vector<uChar> flag(mask.shape(), (uChar)0); 131 const uChar userFlag = 1 << 7; 132 for (uInt k = 0; k < flag.nelements(); ++k) { 133 if (mask[k] == True) 134 flag[k] = userFlag; 135 } 136 appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), 137 current.asuInt("POLNO"), 138 freqidCol(irow), timeCen, elCen, 139 acc.getSpectrum(), flag); 130 140 } 131 141 acc.reset() ;
Note: See TracChangeset
for help on using the changeset viewer.