Changeset 2133
- Timestamp:
- 04/14/11 10:44:45 (14 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r2125 r2133 3194 3194 taqlstream << "SELECT FROM $1 WHERE FREQ_ID IN [" ; 3195 3195 for ( uInt i = 0 ; i < freqidlist.size() ; i++ ) { 3196 taqlstream << i;3196 taqlstream << freqidlist[i] ; 3197 3197 if ( i < freqidlist.size() - 1 ) 3198 3198 taqlstream << "," ; … … 3399 3399 //os << "tableid = " << tableid << " rowid = " << rowid << ": " << LogIO::POST ; 3400 3400 //os << " regridChannel applied to " ; 3401 if ( tableid != reftable )3402 3401 //if ( tableid != reftable ) 3402 refreqid = newin[tableid]->frequencies().addEntry( refpixref, refvalref, refinc ) ; 3403 3403 for ( uInt irow = 0 ; irow < newin[tableid]->table().nrow() ; irow++ ) { 3404 3404 uInt tfreqid = freqIdVec[tableid][irow] ; -
trunk/src/Scantable.cpp
r2131 r2133 1570 1570 int ichan = 0 ; 1571 1571 double wsum = 0.0 ; 1572 Vector<Float> z( nChan ) ;1573 z[0] = abcissa[0] - 0.5 * olddnu + 0.5 * dnu ;1574 for ( int ii = 1 ; ii < nChan ; ii++ )1575 z[ii] = z[ii-1] + dnu ;1576 1572 Vector<Float> zi( nChan+1 ) ; 1577 1573 Vector<Float> yi( oldsize + 1 ) ; 1578 zi[0] = z[0] - 0.5 *dnu ;1579 zi[1] = z [0] + 0.5 *dnu ;1574 zi[0] = abcissa[0] - 0.5 * olddnu ; 1575 zi[1] = zi[1] + dnu ; 1580 1576 for ( int ii = 2 ; ii < nChan ; ii++ ) 1581 zi[ii] = zi[ ii-1] + dnu;1582 zi[nChan] = z [nChan-1] + 0.5 *dnu ;1577 zi[ii] = zi[0] + dnu * ii ; 1578 zi[nChan] = zi[nChan-1] + dnu ; 1583 1579 yi[0] = abcissa[0] - 0.5 * olddnu ; 1584 1580 yi[1] = abcissa[1] + 0.5 * olddnu ; … … 1629 1625 } 1630 1626 } 1631 newspec[ii] /= wsum ; 1627 if ( wsum != 0.0 ) 1628 newspec[ii] /= wsum ; 1632 1629 wsum = 0.0 ; 1633 1630 } … … 1676 1673 } 1677 1674 } 1678 newspec[ii] /= wsum ; 1675 if ( wsum != 0.0 ) 1676 newspec[ii] /= wsum ; 1679 1677 wsum = 0.0 ; 1680 1678 }
Note:
See TracChangeset
for help on using the changeset viewer.