Changeset 2247 for branches/parallel/src/STFrequencies.cpp
- Timestamp:
- 07/25/11 14:57:22 (13 years ago)
- Location:
- branches/parallel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/parallel
- Property svn:mergeinfo changed
/trunk merged: 2209,2242-2243
- Property svn:mergeinfo changed
-
branches/parallel/src
- Property svn:mergeinfo changed
/trunk/src merged: 2209,2242-2243
- Property svn:mergeinfo changed
-
branches/parallel/src/STFrequencies.cpp
r1819 r2247 88 88 // test if this already exists 89 89 Table result = table_( near(table_.col("REFVAL"), refval) 90 && near(table_.col("REFPIX"), refpix)91 && near(table_.col("INCREMENT"), inc));90 && near(table_.col("REFPIX"), refpix) 91 && near(table_.col("INCREMENT"), inc), 1 ); 92 92 uInt resultid = 0; 93 93 if ( result.nrow() > 0) { … … 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");
Note: See TracChangeset
for help on using the changeset viewer.