Changeset 2084
- Timestamp:
- 03/31/11 15:56:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2081 r2084 941 941 table_ = tab; 942 942 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())) ;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())) ; 957 957 selector_ = selection; 958 958 }
Note:
See TracChangeset
for help on using the changeset viewer.