Changeset 2080 for trunk/src


Ignore:
Timestamp:
03/25/11 23:32:17 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Update nBeam, nIF, nPol, and nChan table keywords when any selection
is applied.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2064 r2080  
    941941  table_ = tab;
    942942  attach();
     943  tab.rwKeywordSet().define("nBeam",(Int)(getBeamNos().size())) ;
     944  vector<uint> selectedIFs = getIFNos() ;
     945  Int newnIF = selectedIFs.size() ;
     946  tab.rwKeywordSet().define("nIF",newnIF) ;
     947  if ( newnIF != 0 ) {
     948    Int newnChan = 0 ;
     949    for ( Int i = 0 ; i < newnIF ; i++ ) {
     950      Int nChan = nchan( selectedIFs[i] ) ;
     951      if ( newnChan > nChan )
     952        newnChan = nChan ;
     953    }
     954    tab.rwKeywordSet().define("nChan",newnChan) ;
     955  }
     956  tab.rwKeywordSet().define("nPol",(Int)(getPolNos().size())) ;
    943957  selector_ = selection;
    944958}
Note: See TracChangeset for help on using the changeset viewer.