Changeset 308
- Timestamp:
- 01/27/05 21:48:53 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDContainer.cc
r215 r308 35 35 #include <casa/Arrays/Matrix.h> 36 36 #include <casa/Arrays/ArrayAccessor.h> 37 #include <casa/BasicMath/Math.h> 37 38 #include <casa/Quanta/MVTime.h> 39 38 40 39 41 #include "SDDefs.h" … … 355 357 } 356 358 357 Int SDFrequencyTable::addFrequency( IntrefPix, Double refVal, Double inc) {359 Int SDFrequencyTable::addFrequency(Double refPix, Double refVal, Double inc) { 358 360 Int idx = -1; 359 361 Bool addit = False; 360 362 if (length() > 0) { 361 363 for (uInt i=0; i< length();++i) { 362 if ( refVal == refVal_[i] ) { // probably check with tolerance363 if ( refPix == refPix_[i])364 if ( inc == increment_[i])364 if ( near(refVal,refVal_[i]) ) { 365 if (near(refPix,refPix_[i]) ) 366 if ( near(inc,increment_[i]) ) 365 367 idx = Int(i); 366 368 }
Note:
See TracChangeset
for help on using the changeset viewer.