Changeset 2134 for branches/casa-prerelease
- Timestamp:
- 04/14/11 10:53:12 (14 years ago)
- Location:
- branches/casa-prerelease/pre-asap
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/casa-prerelease/pre-asap
-
branches/casa-prerelease/pre-asap/Makefile
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/SConstruct
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/apps
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/external-alma
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/external-alma/atnf/pks/pks_maths.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/getsvnrev.sh
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/python
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/src
- Property svn:mergeinfo changed
/trunk/src merged: 2133
- Property svn:mergeinfo changed
-
branches/casa-prerelease/pre-asap/src/SConscript
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/src/STMath.cpp
r2126 r2134 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] ; -
branches/casa-prerelease/pre-asap/src/Scantable.cpp
r2132 r2134 1556 1556 int ichan = 0 ; 1557 1557 double wsum = 0.0 ; 1558 Vector<Float> z( nChan ) ;1559 z[0] = abcissa[0] - 0.5 * olddnu + 0.5 * dnu ;1560 for ( int ii = 1 ; ii < nChan ; ii++ )1561 z[ii] = z[ii-1] + dnu ;1562 1558 Vector<Float> zi( nChan+1 ) ; 1563 1559 Vector<Float> yi( oldsize + 1 ) ; 1564 zi[0] = z[0] - 0.5 *dnu ;1565 zi[1] = z [0] + 0.5 *dnu ;1560 zi[0] = abcissa[0] - 0.5 * olddnu ; 1561 zi[1] = zi[1] + dnu ; 1566 1562 for ( int ii = 2 ; ii < nChan ; ii++ ) 1567 zi[ii] = zi[ ii-1] + dnu;1568 zi[nChan] = z [nChan-1] + 0.5 *dnu ;1563 zi[ii] = zi[0] + dnu * ii ; 1564 zi[nChan] = zi[nChan-1] + dnu ; 1569 1565 yi[0] = abcissa[0] - 0.5 * olddnu ; 1570 1566 yi[1] = abcissa[1] + 0.5 * olddnu ; … … 1615 1611 } 1616 1612 } 1617 newspec[ii] /= wsum ; 1613 if ( wsum != 0.0 ) 1614 newspec[ii] /= wsum ; 1618 1615 wsum = 0.0 ; 1619 1616 } … … 1662 1659 } 1663 1660 } 1664 newspec[ii] /= wsum ; 1661 if ( wsum != 0.0 ) 1662 newspec[ii] /= wsum ; 1665 1663 wsum = 0.0 ; 1666 1664 }
Note:
See TracChangeset
for help on using the changeset viewer.