Changeset 2467


Ignore:
Timestamp:
04/16/12 21:18:11 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (bug fixes)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: unit test of sdcal

Put in Release Notes: No

Module(s):

Description: fixed minor bug in a log message. also removed unused variables.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r2466 r2467  
    31663166      freqrange = ifgfreq[2*i+1] ;
    31673167    }
    3168        
     3168
    31693169
    31703170    // print IF groups
     
    33553355
    33563356    // save column values in the vector
    3357     vector< vector<uInt> > freqTableIdVec( insize ) ;
    33583357    vector< vector<uInt> > freqIdVec( insize ) ;
    33593358    vector< vector<uInt> > ifNoVec( insize ) ;
    33603359    for ( uInt itable = 0 ; itable < insize ; itable++ ) {
    3361       ScalarColumn<uInt> freqIDs ;
    3362       freqIDs.attach( newin[itable]->frequencies().table(), "ID" ) ;
    33633360      ifnoCol.attach( newin[itable]->table(), "IFNO" ) ;
    33643361      freqIDCol.attach( newin[itable]->table(), "FREQ_ID" ) ;
    3365       for ( uInt irow = 0 ; irow < newin[itable]->frequencies().table().nrow() ; irow++ ) {
    3366         freqTableIdVec[itable].push_back( freqIDs( irow ) ) ;
    3367       }
    33683362      for ( uInt irow = 0 ; irow < newin[itable]->table().nrow() ; irow++ ) {
    33693363        freqIdVec[itable].push_back( freqIDCol( irow ) ) ;
     
    33803374      vector<uInt> freqIdUpdate ;
    33813375      for ( uInt irow = 0 ; irow < rows ; irow++ ) {
    3382         uInt ifno = ifNoVec[itable][irow] ;  // IFNO is reset by group index
     3376        uInt ifno = ifNoVec[itable][irow] ;  // IFNO is reset by group index (IF group index)
    33833377        double minfreq = ifgfreq[2*ifno] ;
    33843378        double maxfreq = ifgfreq[2*ifno+1] ;
     
    34143408          nmaxchan = imax - sigres * (int(cfreq) +( ( cfreq - int(cfreq) >= 0.5 ) ? 1 : 0 )) ;
    34153409        }
    3416         //os << "freqrange = [" << abcissa[nminchan] << ", " << abcissa[nmaxchan] << "]"<< LogIO::POST;
     3410        //os << "channel range (" << irow << "): [" << nminchan << "," << nmaxchan << "]" << LogIO::POST ;
    34173411        if ( nmaxchan < nminchan ) {
    34183412          int tmp = nmaxchan ;
     
    35703564    // combine frequency group
    35713565    os << "Combine spectra based on frequency grouping" << LogIO::POST ;
    3572     //os << "IFNO is renumbered as frequency group ID (see above)" << LogIO::POST ;
    3573     os << "IFNO is renumbered as IF group ID (see above)" << LogIO::POST ;
     3566    os << "IFNO is renumbered as frequency group ID (see above)" << LogIO::POST ;
    35743567    vector<string> coordinfo = tmpout->getCoordInfo() ;
    35753568    oldinfo[0] = coordinfo[0] ;
Note: See TracChangeset for help on using the changeset viewer.