Changeset 2908
- Timestamp:
- 03/24/14 13:47:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2890 r2908 1864 1864 1865 1865 // update FREQUENCIES subtable 1866 Vector<uInt> freqIdArray = mfreqidCol_.getColumn(); 1867 uInt numFreqId = GenSort<uInt>::sort(freqIdArray, Sort::Ascending, 1868 Sort::HeapSort | Sort::NoDuplicates); 1866 1869 Double refpix ; 1867 1870 Double refval ; 1868 1871 Double increment ; 1869 int freqnrow = freqTable_.table().nrow() ; 1870 Vector<uInt> oldId( freqnrow ) ; 1871 Vector<uInt> newId( freqnrow ) ; 1872 for ( int irow = 0 ; irow < freqnrow ; irow++ ) { 1873 freqTable_.getEntry( refpix, refval, increment, irow ) ; 1872 for (uInt irow = 0; irow < numFreqId; irow++) { 1873 freqTable_.getEntry( refpix, refval, increment, freqIdArray[irow] ) ; 1874 1874 /*** 1875 1875 * need to shift refpix to nmin … … 1878 1878 refval = refval - ( refpix - nmin ) * increment ; 1879 1879 refpix = 0 ; 1880 freqTable_.setEntry( refpix, refval, increment, irow) ;1880 freqTable_.setEntry( refpix, refval, increment, freqIdArray[irow] ) ; 1881 1881 } 1882 1882
Note:
See TracChangeset
for help on using the changeset viewer.