- Timestamp:
- 04/24/12 11:14:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r2477 r2479 3325 3325 3326 3326 // reset SCANNO and IFNO/FREQ_ID: IF is reset by the result of sortation 3327 os << "All scan number is set to 0" << LogIO::POST ;3328 3327 //os << "All IF number is set to IF group index" << LogIO::POST ; 3329 3328 insize = newin.size() ; 3329 // reset SCANNO only when avmode != "SCAN" 3330 if ( avmode != "SCAN" ) { 3331 os << "All scan number is set to 0" << LogIO::POST ; 3332 for ( uInt itable = 0 ; itable < insize ; itable++ ) { 3333 uInt nrow = newin[itable]->nrow() ; 3334 Table &tmpt = newin[itable]->table() ; 3335 scannoCol.attach( tmpt, "SCANNO" ) ; 3336 for ( uInt irow = 0 ; irow < nrow ; irow++ ) 3337 scannoCol.put( irow, 0 ) ; 3338 } 3339 } 3330 3340 for ( uInt itable = 0 ; itable < insize ; itable++ ) { 3331 3341 uInt rows = newin[itable]->nrow() ; 3332 3342 Table &tmpt = newin[itable]->table() ; 3333 3343 freqIDCol.attach( tmpt, "FREQ_ID" ) ; 3334 scannoCol.attach( tmpt, "SCANNO" ) ;3335 3344 ifnoCol.attach( tmpt, "IFNO" ) ; 3336 3345 for ( uInt irow=0 ; irow < rows ; irow++ ) { 3337 scannoCol.put( irow, 0 ) ;3338 3346 uInt freqID = freqIDCol( irow ) ; 3339 3347 vector<uInt>::iterator iter = find( freqid[newtableids[itable]].begin(), freqid[newtableids[itable]].end(), freqID ) ; … … 3617 3625 // dirColOut.attach( out->table(), "DIRECTION" ) ; 3618 3626 Table &tab = tmpout->table() ; 3619 Block<String> cols(1); 3627 // Block<String> cols(1); 3628 // cols[0] = String("POLNO") ; 3629 Block<String> cols(3); 3620 3630 cols[0] = String("POLNO") ; 3631 cols[1] = String("SCANNO") ; 3632 cols[2] = String("BEAMNO") ; 3621 3633 TableIterator iter( tab, cols ) ; 3622 3634 vector< vector<uInt> > sizes( freqgrp.size() ) ;
Note:
See TracChangeset
for help on using the changeset viewer.