Changeset 1008 for trunk/src


Ignore:
Timestamp:
04/11/06 12:14:35 (19 years ago)
Author:
mar637
Message:

Fix for Ticket #18, frequency switching broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r1000 r1008  
    9191  ScalarColumn<Double> mjdColOut(tout,"TIME");
    9292  ScalarColumn<Double> intColOut(tout,"INTERVAL");
     93  ScalarColumn<uInt> cycColOut(tout,"CYCLENO");
    9394
    9495  // set up the output table rows. These are based on the structure of the
     
    176177    intColOut.put(i, acc.getInterval());
    177178    mjdColOut.put(i, acc.getTime());
     179    // we should only have one cycle now -> reset it to be 0
     180    // frequency switched data has different CYCLENO for different IFNO
     181    // which requires resetting this value
     182    cycColOut.put(i, uInt(0));
    178183    acc.reset();
    179184  }
     
    321326  CountedPtr< Scantable > out = getScantable(in, false);
    322327  Table& tout = out->table();
    323   Block<String> cols(3);
     328  Block<String> cols(4);
    324329  cols[0] = String("SCANNO");
    325   cols[1] = String("BEAMNO");
    326   cols[2] = String("POLNO");
     330  cols[1] = String("CYCLENO");
     331  cols[2] = String("BEAMNO");
     332  cols[3] = String("POLNO");
    327333  TableIterator iter(tout, cols);
    328334  while (!iter.pastEnd()) {
     
    332338      continue;
    333339    }
    334     ArrayColumn<Float> specCol(tout, "SPECTRA");
    335     ArrayColumn<Float> tsysCol(tout, "TSYS");
    336     ArrayColumn<uChar> flagCol(tout, "FLAGTRA");
     340    ArrayColumn<Float> specCol(subt, "SPECTRA");
     341    ArrayColumn<Float> tsysCol(subt, "TSYS");
     342    ArrayColumn<uChar> flagCol(subt, "FLAGTRA");
    337343    Vector<Float> onspec,offspec, ontsys, offtsys;
    338344    Vector<uChar> onflag, offflag;
Note: See TracChangeset for help on using the changeset viewer.