Changeset 2243
- Timestamp:
- 07/22/11 15:42:42 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STFit.cpp
r1932 r2243 90 90 // replace 91 91 if ( id > -1 ) { 92 Table t = table_(table_.col("ID") == id );92 Table t = table_(table_.col("ID") == id, 1 ); 93 93 if (t.nrow() > 0) { 94 94 rno = t.rowNumbers(table_)[0]; … … 129 129 void STFit::getEntry( STFitEntry& fit, uInt id ) const 130 130 { 131 Table t = table_(table_.col("ID") == Int(id) );131 Table t = table_(table_.col("ID") == Int(id), 1 ); 132 132 if (t.nrow() == 0 ) { 133 133 throw(AipsError("STFit::getEntry - id out of range")); -
trunk/src/STFocus.cpp
r2242 r2243 139 139 uInt id) const 140 140 { 141 Table t = table_(table_.col("ID") == Int(id) );141 Table t = table_(table_.col("ID") == Int(id), 1 ); 142 142 if (t.nrow() == 0 ) { 143 143 throw(AipsError("STFocus::getEntry - id out of range")); … … 161 161 { 162 162 Float total = 0.0f; 163 Table t = table_(table_.col("ID") == Int(id) );163 Table t = table_(table_.col("ID") == Int(id), 1 ); 164 164 if (t.nrow() == 0 ) { 165 165 throw(AipsError("STFocus::getTotalAngle - id out of range")); … … 181 181 casa::Float STFocus::getFeedHand( casa::uInt id ) const 182 182 { 183 Table t = table_(table_.col("ID") == Int(id) );183 Table t = table_(table_.col("ID") == Int(id), 1 ); 184 184 if (t.nrow() == 0 ) { 185 185 throw(AipsError("STFocus::getEntry - id out of range")); -
trunk/src/STFrequencies.cpp
r2242 r2243 116 116 uInt id ) 117 117 { 118 Table t = table_(table_.col("ID") == Int(id) );118 Table t = table_(table_.col("ID") == Int(id), 1 ); 119 119 if (t.nrow() == 0 ) { 120 120 throw(AipsError("STFrequencies::getEntry - freqID out of range")); … … 130 130 void STFrequencies::setEntry( Double refpix, Double refval, Double inc, uInt id ) 131 131 { 132 Table t = table_(table_.col("ID") == Int(id) );132 Table t = table_(table_.col("ID") == Int(id), 1 ); 133 133 if (t.nrow() == 0 ) { 134 134 throw(AipsError("STFrequencies::getEntry - freqID out of range")); … … 147 147 SpectralCoordinate STFrequencies::getSpectralCoordinate( uInt id ) const 148 148 { 149 Table t = table_(table_.col("ID") == Int(id) );149 Table t = table_(table_.col("ID") == Int(id), 1 ); 150 150 151 151 if (t.nrow() == 0 ) { … … 309 309 ostringstream oss; 310 310 if ( id < 0 ) t = table_; 311 else t = table_(table_.col("ID") == Int(id) );311 else t = table_(table_.col("ID") == Int(id), 1 ); 312 312 ROTableRow row(t); 313 313 for (uInt i=0; i<t.nrow(); ++i) { … … 337 337 float STFrequencies::getRefFreq( uInt id, uInt channel ) 338 338 { 339 Table t = table_(table_.col("ID") == Int(id) );339 Table t = table_(table_.col("ID") == Int(id), 1 ); 340 340 if ( t.nrow() == 0 ) throw(AipsError("Selected Illegal frequency id")); 341 341 ROTableRow row(t); … … 441 441 void STFrequencies::shiftRefPix(int npix, uInt id) 442 442 { 443 Table t = table_(table_.col("ID") == Int(id) );443 Table t = table_(table_.col("ID") == Int(id), 1 ); 444 444 if ( t.nrow() == 0 ) throw(AipsError("Selected Illegal frequency id")); 445 445 ScalarColumn<Double> tcol(t, "REFPIX"); -
trunk/src/STHistory.cpp
r860 r2243 71 71 void asap::STHistory::getEntry( String& item, uInt id) 72 72 { 73 Table t = table_(table_.col("ID") == Int(id) );73 Table t = table_(table_.col("ID") == Int(id), 1 ); 74 74 if (t.nrow() == 0 ) { 75 75 throw(AipsError("STHistory::getEntry - id out of range")); -
trunk/src/STMolecules.cpp
r2242 r2243 152 152 Vector<String>& formattedname, uInt id ) const 153 153 { 154 Table t = table_(table_.col("ID") == Int(id) );154 Table t = table_(table_.col("ID") == Int(id), 1 ); 155 155 if (t.nrow() == 0 ) { 156 156 throw(AipsError("STMolecules::getEntry - id out of range")); … … 182 182 { 183 183 std::vector<double> out; 184 Table t = table_(table_.col("ID") == Int(id) );184 Table t = table_(table_.col("ID") == Int(id), 1 ); 185 185 if (t.nrow() == 0 ) { 186 186 throw(AipsError("STMolecules::getRestFrequency - id out of range")); -
trunk/src/STWeather.cpp
r1481 r2243 110 110 uInt id ) const 111 111 { 112 Table t = table_(table_.col("ID") == Int(id) );112 Table t = table_(table_.col("ID") == Int(id), 1 ); 113 113 if (t.nrow() == 0 ) { 114 114 throw(AipsError("STWeather::getEntry - id out of range"));
Note:
See TracChangeset
for help on using the changeset viewer.