- Timestamp:
- 10/30/14 03:28:31 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2969 r3009 2652 2652 } else { 2653 2653 btp = new STBaselineTable(*this); 2654 for (int i = 0; i < nRowSt; ++i) { 2655 btp->appendbasedata(getScan(i), getCycle(i), getBeam(i), getIF(i), getPol(i), 2656 0, timeSecCol[i]); 2657 btp->setApply(i, false); 2658 } 2654 // for (int i = 0; i < nRowSt; ++i) { 2655 // btp->appendbasedata(getScan(i), getCycle(i), getBeam(i), getIF(i), getPol(i), 2656 // 0, timeSecCol[i]); 2657 // btp->setApply(i, false); 2658 // } 2659 } 2660 int nrow = btp->nrow(); 2661 for (int i = nrow; i < nRowSt; ++i) { 2662 btp->appendbasedata(getScan(i), getCycle(i), getBeam(i), getIF(i), getPol(i), 2663 0, timeSecCol[i]); 2664 btp->setApply(i, false); 2659 2665 } 2660 2666 } … … 2678 2684 float rms; 2679 2685 std::vector<bool> finalmask; 2680 2681 std::vector<float> resfit = doSubtractBaseline(spec, mask, ftype, fpar, params, rms, finalmask, clipth, clipn, uself, irow, lfth, lfedge, lfavg); 2682 setSpectrum(resfit, irow); 2686 Bool doApply = True; 2687 2688 if (flagrowCol_(irow) == 0) { 2689 std::vector<float> resfit = doSubtractBaseline(spec, mask, ftype, fpar, params, rms, finalmask, clipth, clipn, uself, irow, lfth, lfedge, lfavg); 2690 setSpectrum(resfit, irow); 2691 } 2692 else { 2693 doApply = False; 2694 } 2683 2695 2684 2696 if (returnfitresult) { … … 2695 2707 uInt(getScan(irow)), uInt(getCycle(irow)), 2696 2708 uInt(getBeam(irow)), uInt(getIF(irow)), uInt(getPol(irow)), 2697 uInt(0), timeSecCol[irow], Bool(true), ftype, fparam,2709 uInt(0), timeSecCol[irow], doApply, ftype, fparam, 2698 2710 Vector<Float>(), getMaskListFromMask(finalmask), Vector<Float>(params), 2699 2711 Float(rms), uInt(spec.size()), Float(clipth), uInt(clipn), … … 2902 2914 } 2903 2915 for (uInt j = 0; j < masklist.size(); j += 2) { 2904 for (int i = masklist[j]; i <= m asklist[j+1]; ++i) {2916 for (int i = masklist[j]; i <= min(nchan-1, masklist[j+1]); ++i) { 2905 2917 res[i] = true; 2906 2918 }
Note:
See TracChangeset
for help on using the changeset viewer.