- Timestamp:
- 01/14/09 12:25:25 (16 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STFiller.cpp
r1450 r1462 250 250 // fields that don't get used and are just passed through asap 251 251 RecordFieldPtr<Array<Double> > srateCol(rec, "SCANRATE"); 252 *srateCol = pksrec.scanRate; 252 // MRC changed type from double to float 253 Vector<Double> sratedbl; 254 convertArray(sratedbl, pksrec.scanRate); 255 *srateCol = sratedbl; 253 256 RecordFieldPtr<Array<Double> > spmCol(rec, "SRCPROPERMOTION"); 254 257 *spmCol = pksrec.srcPM; … … 340 343 341 344 *specCol = pksrec.spectra.column(i); 342 *flagCol = pksrec.flag tra.column(i);345 *flagCol = pksrec.flagged.column(i); 343 346 table_->table().addRow(); 344 347 row.put(table_->table().nrow()-1, rec); … … 354 357 // make up flags from linears 355 358 /// @fixme this has to be a bitwise or of both pols 356 *flagCol = pksrec.flag tra.column(0);// | pksrec.flagtra.column(1);359 *flagCol = pksrec.flagged.column(0);// | pksrec.flagged.column(1); 357 360 table_->table().addRow(); 358 361 row.put(table_->table().nrow()-1, rec); -
trunk/src/STWriter.cpp
r1449 r1462 170 170 TableIterator cycit(btable, "CYCLENO"); 171 171 ROArrayColumn<Double> srateCol(btable, "SCANRATE"); 172 srateCol.get(0, pksrec.scanRate); 172 Vector<Double> sratedbl; 173 Vector<Float> srateflt; 174 srateCol.get(0, sratedbl); 175 convertArray(srateflt, sratedbl); 176 pksrec.scanRate = srateflt; 173 177 ROArrayColumn<Double> spmCol(btable, "SRCPROPERMOTION"); 174 178 spmCol.get(0, pksrec.srcPM); … … 212 216 pksrec.refFreq = (pixel-crpix)*pksrec.freqInc + crval; 213 217 // ok, now we have nrows for the n polarizations in this table 214 polConversion(pksrec.spectra, pksrec.flagged, pksrec.x pol, itable);218 polConversion(pksrec.spectra, pksrec.flagged, pksrec.xPol, itable); 215 219 pksrec.tsys = tsysFromTable(itable); 216 220 // dummy data 217 uInt npol = spectra.ncolumn();221 uInt npol = pksrec.spectra.ncolumn(); 218 222 219 223 pksrec.mjd = rec.asDouble("TIME");
Note:
See TracChangeset
for help on using the changeset viewer.