Changeset 996 for trunk/src/Scantable.cpp
- Timestamp:
- 04/06/06 13:45:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r987 r996 101 101 initFactories(); 102 102 Table tab(name, Table::Update); 103 Int version;103 uInt version; 104 104 tab.keywordSet().get("VERSION", version); 105 105 if (version != version_) { … … 322 322 323 323 int Scantable::nscan() const { 324 int n = 0;325 Int previous = -1; Int current = 0;326 324 Vector<uInt> scannos(scanCol_.getColumn()); 327 325 uInt nout = GenSort<uInt>::sort( scannos, Sort::Ascending, … … 384 382 { 385 383 bool throwIt = true; 386 Instrument ins = STAttr::convertInstrument(name, throwIt); 384 // create an Instrument to see if this is valid 385 STAttr::convertInstrument(name, throwIt); 387 386 String nameU(name); 388 387 nameU.upcase(); … … 555 554 oss << "Computed azimuth/elevation using " << endl 556 555 << mp << endl; 557 for ( uInt i=0; i<nrow(); ++i) {556 for (Int i=0; i<nrow(); ++i) { 558 557 MEpoch me = timeCol(i); 559 558 MDirection md = getDirection(i); … … 795 794 std::vector< double > asap::Scantable::getAbcissa( int whichrow ) const 796 795 { 797 if ( whichrow > table_.nrow() ) throw(AipsError("Illegal ro number"));796 if ( whichrow > int(table_.nrow()) ) throw(AipsError("Illegal ro number")); 798 797 std::vector<double> stlout; 799 798 int nchan = specCol_(whichrow).nelements(); … … 864 863 std::string Scantable::getAbcissaLabel( int whichrow ) const 865 864 { 866 if ( whichrow > table_.nrow() ) throw(AipsError("Illegal ro number"));865 if ( whichrow > int(table_.nrow()) ) throw(AipsError("Illegal ro number")); 867 866 const MPosition& mp = getAntennaPosition(); 868 867 const MDirection& md = getDirection(whichrow);
Note: See TracChangeset
for help on using the changeset viewer.