Changeset 2741
- Timestamp:
- 01/21/13 19:41:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSWriter.cpp
r2643 r2741 12 12 // 13 13 #include <assert.h> 14 15 #include <set> 14 16 15 17 #include <casa/OS/File.h> … … 1048 1050 void addSpectralWindow( Int sid, uInt fid ) 1049 1051 { 1050 if ( !processedFreqId[fid] ) { 1052 if (processedFreqId.find((uInt)fid) == processedFreqId.end() 1053 || processedIFNO.find((uInt)sid) == processedIFNO.end() ) { 1051 1054 uInt nrow = spwtab.nrow() ; 1052 1055 while( (Int)nrow <= sid ) { … … 1054 1057 nrow++ ; 1055 1058 } 1056 processedFreqId[fid] = True ; 1059 processedFreqId.insert((uInt)fid); 1060 processedIFNO.insert((uInt)sid); 1057 1061 } 1058 1062 else { 1059 1063 return ; 1060 1064 } 1065 1061 1066 1062 1067 Double rp = refpix[fid] ; … … 1169 1174 Vector<Double> ic = iccol.getColumn() ; 1170 1175 for ( uInt i = 0 ; i < id.nelements() ; i++ ) { 1171 processedFreqId.insert( pair<uInt,Bool>( id[i], False ) ) ;1172 1176 refpix.insert( pair<uInt,Double>( id[i], rp[i] ) ) ; 1173 1177 refval.insert( pair<uInt,Double>( id[i], rv[i] ) ) ; … … 1462 1466 Block<Int> feedEntry; 1463 1467 vector< Vector<Int> > polEntry; 1464 map<uInt,Bool> processedFreqId; 1468 set<uInt> processedFreqId; 1469 set<uInt> processedIFNO; 1465 1470 map<uInt,Double> refpix; 1466 1471 map<uInt,Double> refval;
Note:
See TracChangeset
for help on using the changeset viewer.