Changeset 2463
- Timestamp:
- 04/12/12 15:41:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2462 r2463 1916 1916 firstTime[currId] = false ; 1917 1917 freqTable_.getEntry( refpix, refval, increment, currId ) ; 1918 /*** 1919 * need to shift refpix to 0 1920 ***/ 1918 1921 1919 //refval = refval - ( refpix + 0.5 * (1 - factor) ) * increment ; 1922 if (factor > =0 ) {1920 if (factor > 0 ) { 1923 1921 refpix = (refpix + 0.5)/factor - 0.5; 1924 1922 } else { 1925 refpix = (abcissa.size() +0.5 - refpix)/abs(factor) - 0.5;1923 refpix = (abcissa.size() - 0.5 - refpix)/abs(factor) - 0.5; 1926 1924 } 1927 1925 freqTable_.setEntry( refpix, refval, increment*factor, currId ) ; 1928 os << "ID" << currId << ": channel width (Orig) = " << oldincr << " [" << freqTable_.getUnitString() << "], scale factor = " << factor << LogIO::POST ;1929 os << " frequency increment (Orig) = " << increment << "-> (New) " << increment*factor << LogIO::POST ;1926 //os << "ID" << currId << ": channel width (Orig) = " << oldincr << " [" << freqTable_.getUnitString() << "], scale factor = " << factor << LogIO::POST ; 1927 //os << " frequency increment (Orig) = " << increment << "-> (New) " << increment*factor << LogIO::POST ; 1930 1928 } 1931 1929 }
Note:
See TracChangeset
for help on using the changeset viewer.