Changeset 3058
- Timestamp:
- 11/10/15 15:57:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSWriter.cpp
r3033 r3058 676 676 : BaseMSWriterVisitor(table), 677 677 ms(mstable), 678 addScanrate_(False) 678 addScanrate_(False), 679 pointingTimeList_(table.nrow(), -1.0), 680 referenceBeam_(-1) 679 681 { 680 682 rowidx = 0 ; … … 752 754 753 755 feedId = (Int)columnValue ; 756 if (referenceBeam_ < 0) { 757 referenceBeam_ = feedId; 758 LogIO os; 759 os << "Reference beam is " << referenceBeam_ << LogIO::POST; 760 } 754 761 755 762 // put value … … 806 813 Double interval = intervalCol.asdouble( recordNo ) ; 807 814 808 if ( ptName.empty() ) { 815 // add POINTING row only when 1) BEAMNO is 0 and 816 // 2) there is no row corresponding to the current timestamp 817 //LogIO os; 818 //os << "feedId = " << feedId << LogIO::POST; 819 if ( ptName.empty() && //feedId == referenceBeam_ && 820 (potab.nrow() == 0 || allNE(pointingTimeList_(Slice(0, potab.nrow())), timeSec))) { 821 LogIO os; 822 os << LogIO::DEBUGGING << "ROW " << recordNo << " Beam " << feedId 823 << ": adding pointing row, potab.nrow() = " << potab.nrow() << LogIO::POST; 824 pointingTimeList_[potab.nrow()] = timeSec; 809 825 Vector<Double> dir = directionCol( recordNo ) ; 810 826 Vector<Double> rate = scanRateCol( recordNo ) ; 827 if (feedId != referenceBeam_) { 828 os << LogIO::DEBUGGING << "TODO: Need to store pointing direction of reference beam" 829 << " if only non-reference beam row is available for certain timestamp" << LogIO::POST; 830 } 811 831 //if ( anyNE( rate, 0.0 ) ) { 812 832 if (addScanrate_) { … … 1532 1552 Record srcRec; 1533 1553 map< Int, Matrix<Int> > corrProductTemplate; 1554 Vector<Double> pointingTimeList_; 1555 Int referenceBeam_; 1534 1556 }; 1535 1557
Note:
See TracChangeset
for help on using the changeset viewer.