- Timestamp:
- 03/14/12 20:34:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2431 r2433 1885 1885 } 1886 1886 1887 1887 1888 void asap::Scantable::regridChannel( int nChan, double dnu ) 1888 1889 { … … 1905 1906 } 1906 1907 1907 // change channel number for specCol_ and flagCol_ 1908 //Vector<Float> newspec( nChan, 0 ) ; 1909 //Vector<uChar> newflag( nChan, false ) ; 1908 // change channel number for specCol_, flagCol_, and tsysCol_ (if necessary) 1910 1909 vector<string> coordinfo = getCoordInfo() ; 1911 1910 string oldinfo = coordinfo[0] ; … … 1955 1954 int ichan = 0 ; 1956 1955 double wsum = 0.0 ; 1957 Vector< Float> zi( nChan+1 ) ;1958 Vector< Float> yi( oldsize + 1 ) ;1956 Vector<double> zi( nChan+1 ) ; 1957 Vector<double> yi( oldsize + 1 ) ; 1959 1958 zi[0] = abcissa[0] - 0.5 * olddnu ; 1960 1959 //zi[1] = zi[1] + dnu ; … … 1966 1965 for ( int ii = 1 ; ii < oldsize ; ii++ ) 1967 1966 //yi[ii] = abcissa[ii-1] + olddnu ; 1968 yi[ii] = yi[0] + olddnu * ii ; 1969 yi[oldsize] = abcissa[oldsize-1] + 0.5 * olddnu ; 1967 yi[ii] = 0.5* (abcissa[ii-1] + abcissa[ii]) ; 1968 yi[oldsize] = abcissa[oldsize-1] \ 1969 + 0.5 * (abcissa[oldsize-1] - abcissa[oldsize-2]) ; 1970 1970 if ( dnu > 0.0 ) { 1971 1971 for ( int ii = 0 ; ii < nChan ; ii++ ) {
Note:
See TracChangeset
for help on using the changeset viewer.