Changeset 1293 for branches/Release2.1.1/src/STWriter.cpp
- Timestamp:
- 11/06/06 21:54:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release2.1.1/src/STWriter.cpp
r1276 r1293 119 119 //const Int nPol = hdr.npol; 120 120 //const Int nChan = hdr.nchan; 121 int nIF = in->nif(); 121 std::vector<uint> ifs = in->getIFNos(); 122 int nIF = in->nif();//ifs.size(); 122 123 Vector<uInt> nPol(nIF),nChan(nIF); 123 124 Vector<Bool> havexpol(nIF); 124 for (int i=0;i<nIF;++i) { 125 nPol(i) = in->npol(); 126 nChan(i) = in->nchan(i); 127 havexpol(i) = nPol(i) > 2; 125 nPol = 0;nChan = 0; havexpol = False; 126 for (int i=0;i<ifs.size();++i) { 127 nPol(ifs[i]) = in->npol(); 128 nChan(ifs[i]) = in->nchan(ifs[i]); 129 havexpol(ifs[i]) = nPol(ifs[i]) > 2; 128 130 } 129 131 … … 170 172 ROScalarColumn<Double> svelCol(btable, "SRCVELOCITY"); 171 173 svelCol.get(0, srcVel); 174 ROScalarColumn<uInt> bCol(btable, "BEAMNO"); 175 beamno = bCol(0)+1; 172 176 Int cycno = 1; 173 177 while (!cycit.pastEnd() ) { … … 181 185 const TableRecord& rec = row.get(0); 182 186 ROArrayColumn<Float> specCol(itable, "SPECTRA"); 187 ifno = rec.asuInt("IFNO")+1; 183 188 uInt nchan = specCol(0).nelements(); 184 189 Double cdelt,crval,crpix, restfreq; … … 244 249 } 245 250 ++count; 246 ++ifno;251 //++ifno; 247 252 ++ifit; 248 253 } … … 250 255 ++cycit; 251 256 } 252 ++beamno;257 //++beamno; 253 258 ++beamit; 254 259 }
Note: See TracChangeset
for help on using the changeset viewer.