Changeset 1111 for trunk/src/Scantable.cpp
- Timestamp:
- 08/04/06 12:06:38 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r1068 r1111 134 134 table_.markForDelete(); 135 135 } 136 136 /// @todo reindex SCANNO, recompute nbeam, nif, npol 137 137 if ( clear ) copySubtables(other); 138 138 attachSubtables(); … … 338 338 339 339 340 int Scantable::nscan() const {341 Vector<uInt> scannos(scanCol_.getColumn());342 uInt nout = GenSort<uInt>::sort( scannos, Sort::Ascending,343 Sort::QuickSort|Sort::NoDuplicates );344 return int(nout);345 }346 340 347 341 std::string Scantable::formatSec(Double x) const … … 418 412 String inname(filename); 419 413 Path path(inname); 414 /// @todo reindex SCANNO, recompute nbeam, nif, npol 420 415 inname = path.expandedName(); 421 416 table_.deepCopy(inname, Table::New); … … 532 527 } 533 528 529 int Scantable::nscan() const { 530 Vector<uInt> scannos(scanCol_.getColumn()); 531 uInt nout = GenSort<uInt>::sort( scannos, Sort::Ascending, 532 Sort::QuickSort|Sort::NoDuplicates ); 533 return int(nout); 534 } 535 534 536 int Scantable::getChannels(int whichrow) const 535 537 { … … 540 542 { 541 543 return beamCol_(whichrow); 544 } 545 546 std::vector<uint> Scantable::getNumbers(ScalarColumn<uInt>& col) 547 { 548 Vector<uInt> nos(col.getColumn()); 549 GenSort<uInt>::sort( nos, Sort::Ascending, 550 Sort::QuickSort|Sort::NoDuplicates ); 551 std::vector<uint> stlout; 552 nos.tovector(stlout); 553 return stlout; 542 554 } 543 555 … … 981 993 } 982 994 983 void asap::Scantable::addFit( const STFitEntry & fit, int row )995 void Scantable::addFit( const STFitEntry & fit, int row ) 984 996 { 985 997 cout << mfitidCol_(uInt(row)) << endl;
Note: See TracChangeset
for help on using the changeset viewer.