- Timestamp:
- 08/15/14 15:14:57 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STSideBandSep.cpp
r2976 r2985 397 397 os << "Found IFNO = " << sigIfno_ 398 398 << " in the first table." << LogIO::POST; 399 #ifdef KS_DEBUG 400 cout << "Frequencies in the first table: freq0 = " << basech0 << ", incr = " << baseinc << ", nch = " << basench << endl; 401 #endif 399 402 } 400 403 if (ftol_.getUnit().empty()) { 401 404 // tolerance in unit of channels 402 ftolval = ftol_.getValue() * baseinc;405 ftolval = abs(ftol_.getValue() * baseinc); 403 406 } 404 407 else { 405 ftolval = ftol_.getValue("Hz");408 ftolval = abs(ftol_.getValue("Hz")); 406 409 } 407 410 inctolval = abs(baseinc/(double) basench); 408 411 const string poltype0 = stab->getPolType(); 412 #ifdef KS_DEBUG 413 cout << "Looking for pairs that satisfies freqtol = " << ftolval << ", inctol = " << inctolval << endl; 414 #endif 409 415 410 416 // Initialize shift values … … 448 454 double freq0, incr; 449 455 if ( getFreqInfo(stab, *iter, freq0, incr, nch) ){ 456 #ifdef KS_DEBUG 457 cout << "Checking IF=" << *iter << " int Table " << itab <<": freq0 = " << freq0 << ", incr = " << incr << ", nch = " << nch << endl; 458 cout << "- number of channels: " << nch << endl; 459 cout << "- chan0 difference: " << abs(freq0-basech0) << " (threshold: " << ftolval << ")" << endl; 460 cout << "- inc difference: " << abs(incr-baseinc) << " (threshold: " << inctolval << ")" << endl; 461 #endif 450 462 if ( (nch == basench) && (abs(freq0-basech0) < ftolval) 451 463 && (abs(incr-baseinc) < inctolval) ){
Note:
See TracChangeset
for help on using the changeset viewer.