- Timestamp:
- 12/20/13 21:17:06 (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STBaselineTable.cpp
r2773 r2883 113 113 { 114 114 if (irow >= (uInt)nrow()) { 115 throw AipsError("row index out of range"); 115 //throw AipsError("row index out of range"); 116 stringstream ss; 117 ss << "row index out of range[irow=" << irow << "][nrow=" << nrow() << "]"; 118 throw AipsError(ss.str()); 116 119 } 117 120 -
trunk/src/Scantable.cpp
r2880 r2883 2582 2582 } 2583 2583 2584 STBaselineTable bt = STBaselineTable(*this);2584 STBaselineTable* btp; 2585 2585 ROScalarColumn<Double> tcol = ROScalarColumn<Double>(table_, "TIME"); 2586 2586 Vector<Double> timeSecCol = tcol.getColumn(); 2587 2587 2588 if (outBaselineTable && !outbltableexists) { 2589 for (int i = 0; i < nRowSt; ++i) { 2590 bt.appendbasedata(getScan(i), getCycle(i), getBeam(i), getIF(i), getPol(i), 2591 0, timeSecCol[i]); 2592 bt.setApply(i, false); 2588 if (outBaselineTable) { 2589 if (outbltableexists) { 2590 btp = new STBaselineTable((String)outbltable); 2591 } else { 2592 btp = new STBaselineTable(*this); 2593 for (int i = 0; i < nRowSt; ++i) { 2594 btp->appendbasedata(getScan(i), getCycle(i), getBeam(i), getIF(i), getPol(i), 2595 0, timeSecCol[i]); 2596 btp->setApply(i, false); 2597 } 2593 2598 } 2594 2599 } … … 2626 2631 } 2627 2632 2628 bt .setdata(uInt(irow),2633 btp->setdata(uInt(irow), 2629 2634 uInt(getScan(irow)), uInt(getCycle(irow)), 2630 2635 uInt(getBeam(irow)), uInt(getIF(irow)), uInt(getPol(irow)), … … 2639 2644 2640 2645 if (outBaselineTable) { 2641 bt.save(outbltable); 2642 } 2643 2646 btp->save(outbltable); 2647 } 2648 2649 delete btp; 2644 2650 return res; 2645 2651 } … … 2756 2762 ss >> masklist0; 2757 2763 mask = getMaskFromMaskList(nchan(getIF(irow)), splitToIntList(masklist0, ',')); 2764 ss.clear(); ss.str(""); 2758 2765 2759 2766 ss << res[4];
Note:
See TracChangeset
for help on using the changeset viewer.