Changeset 1462


Ignore:
Timestamp:
01/14/09 12:25:25 (16 years ago)
Author:
Malte Marquarding
Message:

change in PKSIO api

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFiller.cpp

    r1450 r1462  
    250250    // fields that don't get used and are just passed through asap
    251251    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;
    253256    RecordFieldPtr<Array<Double> > spmCol(rec, "SRCPROPERMOTION");
    254257    *spmCol = pksrec.srcPM;
     
    340343
    341344      *specCol = pksrec.spectra.column(i);
    342       *flagCol = pksrec.flagtra.column(i);
     345      *flagCol = pksrec.flagged.column(i);
    343346      table_->table().addRow();
    344347      row.put(table_->table().nrow()-1, rec);
     
    354357      // make up flags from linears
    355358      /// @fixme this has to be a bitwise or of both pols
    356       *flagCol = pksrec.flagtra.column(0);// | pksrec.flagtra.column(1);
     359      *flagCol = pksrec.flagged.column(0);// | pksrec.flagged.column(1);
    357360      table_->table().addRow();
    358361      row.put(table_->table().nrow()-1, rec);
  • trunk/src/STWriter.cpp

    r1449 r1462  
    170170      TableIterator cycit(btable, "CYCLENO");
    171171      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;
    173177      ROArrayColumn<Double> spmCol(btable, "SRCPROPERMOTION");
    174178      spmCol.get(0, pksrec.srcPM);
     
    212216          pksrec.refFreq = (pixel-crpix)*pksrec.freqInc + crval;
    213217          // ok, now we have nrows for the n polarizations in this table
    214           polConversion(pksrec.spectra, pksrec.flagged, pksrec.xpol, itable);
     218          polConversion(pksrec.spectra, pksrec.flagged, pksrec.xPol, itable);
    215219          pksrec.tsys = tsysFromTable(itable);
    216220          // dummy data
    217           uInt npol = spectra.ncolumn();
     221          uInt npol = pksrec.spectra.ncolumn();
    218222
    219223          pksrec.mjd       = rec.asDouble("TIME");
Note: See TracChangeset for help on using the changeset viewer.