Changeset 2652
- Timestamp:
- 09/28/12 11:06:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STWriter.cpp
r2577 r2652 161 161 nPol = 0;nChan = 0; havexpol = False; 162 162 for (uint i=0;i<ifs.size();++i) { 163 nPol(ifs[i]) = inst->npol(); 163 if ( inst->npol() > 2 ) { 164 havexpol(ifs[i]) = True; 165 nPol(ifs[i]) = 2; 166 } else { 167 nPol(ifs[i]) = inst->npol(); 168 } 164 169 nChan(ifs[i]) = inst->nchan(ifs[i]); 165 havexpol(ifs[i]) = nPol(ifs[i]) > 2;166 170 } 167 171 // Vector<String> obstypes(2); … … 222 226 while(!typeit.pastEnd() ) { 223 227 Table ttable = typeit.table() ; 224 TableIterator ifit(ttable, "IFNO", TableIterator::Ascending, TableIterator::HeapSort); 228 TableIterator ifit(ttable, "IFNO", 229 TableIterator::Ascending, TableIterator::HeapSort); 225 230 MDirection::ScalarColumn dirCol(ctable, "DIRECTION"); 226 231 pksrec.direction = dirCol(0).getAngle("rad").getValue(); … … 241 246 inst->frequencies().getEntry(crpix,crval, pksrec.freqInc, 242 247 rec.asuInt("FREQ_ID")); 243 inst->focus().getEntry(pksrec.parAngle, pksrec.focusAxi, pksrec.focusTan, 248 inst->focus().getEntry(pksrec.parAngle, pksrec.focusAxi, 249 pksrec.focusTan, 244 250 pksrec.focusRot, tmp0,tmp1,tmp2,tmp3,tmp4, 245 251 rec.asuInt("FOCUS_ID")); … … 284 290 } 285 291 } 286 //LogIO os ;287 //os << "npol = " << npol << " pksrec.tcal = " << pksrec.tcal << LogIO::POST ;288 289 292 pksrec.mjd = rec.asDouble("TIME"); 290 293 pksrec.interval = rec.asDouble("INTERVAL");
Note:
See TracChangeset
for help on using the changeset viewer.