- Timestamp:
- 08/07/13 18:48:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STSideBandSep.cpp
r2836 r2838 286 286 sigSpec = solve(specMat, tabIdvec, true); 287 287 sigTab_p->setSpectrum(sigSpec, irow); 288 if (sigTab_p->isAllChannelsFlagged(irow)){ 289 // unflag the spectrum since there should be some valid data 290 sigTab_p->flagRow(vector<uInt>(irow), true); 291 sigTab_p->flag(irow, vector<bool>(), true); 292 } 288 293 289 294 // Solve image sideband … … 291 296 imgSpec = solve(specMat, tabIdvec, false); 292 297 imgTab_p->setSpectrum(imgSpec, irow); 298 if (imgTab_p->isAllChannelsFlagged(irow)){ 299 // unflag the spectrum since there should be some valid data 300 imgTab_p->flagRow(vector<uInt>(irow), true); 301 imgTab_p->flag(irow, vector<bool>(), true); 302 } 293 303 } 294 304 } // end of row loop … … 722 732 // (solve signal && solveother = F) OR (solve image && solveother = T) 723 733 thisShift = &sigShift_; 724 otherShift = &imgShift_; 734 otherShift = &imgShift_; 725 735 #ifdef KS_DEBUG 726 736 cout << "Signal sideband will be deconvolved." << endl; … … 732 742 double tempshift; 733 743 Vector<float> shiftspvec; 744 uInt shiftId; 734 745 for (uInt i = 0 ; i < nspec; i++) { 735 spshift[i] = otherShift->at(i) - thisShift->at(i); 736 tempshift = - thisShift->at(i); 746 shiftId = tabIdvec[i]; 747 spshift[i] = otherShift->at(shiftId) - thisShift->at(shiftId); 748 tempshift = - thisShift->at(shiftId); 737 749 shiftspvec.reference(shiftSpecmat.column(i)); 738 750 shiftSpectrum(specmat.column(i), tempshift, shiftspvec);
Note:
See TracChangeset
for help on using the changeset viewer.