Changeset 862
- Timestamp:
- 03/01/06 14:01:16 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r858 r862 69 69 CountedPtr< Scantable > out = getScantable(in[0], true); 70 70 setInsitu(insitu); 71 std::vector<CountedPtr<Scantable> >::const_iterator stit = in.begin(); 72 ++stit; 73 while ( stit != in.end() ) { 74 out->appendToHistoryTable((*stit)->history()); 75 ++stit; 76 } 71 77 72 78 Table& tout = out->table(); … … 81 87 82 88 // set up the output table rows. These are based on the structure of the 83 // FIRST scantab elin the vector89 // FIRST scantable in the vector 84 90 const Table& baset = in[0]->table(); 85 91 … … 803 809 { 804 810 if ( in.size() < 2 ) { 805 throw(AipsError("Need at least two scantables to perform merge."));811 throw(AipsError("Need at least two scantables to perform a merge.")); 806 812 } 807 813 std::vector<CountedPtr < Scantable > >::const_iterator it = in.begin(); 808 ++it;809 814 bool insitu = insitu_; 810 815 setInsitu(false); 811 CountedPtr< Scantable > out = getScantable( in[0], false);816 CountedPtr< Scantable > out = getScantable(*it, false); 812 817 setInsitu(insitu); 813 818 Table& tout = out->table(); … … 815 820 ScalarColumn<uInt> scannocol(tout,"SCANNO"),focusidcol(tout,"FOCUS_ID"); 816 821 uInt newscanno = max(scannocol.getColumn())+1; 822 ++it; 817 823 while ( it != in.end() ){ 818 824 if ( ! (*it)->conformant(*out) ) { … … 823 829 continue; 824 830 } 831 out->appendToHistoryTable((*it)->history()); 825 832 const Table& tab = (*it)->table(); 826 833 TableIterator scanit(tab, "SCANNO");
Note:
See TracChangeset
for help on using the changeset viewer.