Changeset 1225


Ignore:
Timestamp:
08/31/06 14:08:41 (18 years ago)
Author:
mar637
Message:

median averaging now also changes the INTERVAL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/Release2.1.0b/src/STMath.cpp

    r1224 r1225  
    211211  ArrayColumn<Float> tsysColOut(tout,"TSYS");
    212212  ScalarColumn<uInt> scanColOut(tout,"SCANNO");
     213  ScalarColumn<Double> intColOut(tout, "INTERVAL");
    213214  Table tmp = in->table().sort("BEAMNO");
    214215  Block<String> cols(3);
     
    227228    ROArrayColumn<Float> specCol, tsysCol;
    228229    ROArrayColumn<uChar> flagCol;
     230    ROScalarColumn<Double> intCol(subt, "INTERVAL");
    229231    specCol.attach(subt,"SPECTRA");
    230232    flagCol.attach(subt,"FLAGTRA");
     
    255257    flagColOut.put(outrowCount, outflag);
    256258    tsysColOut.put(outrowCount, outtsys);
    257 
     259    Double intsum = sum(intCol.getColumn());
     260    intColOut.put(outrowCount, intsum);
    258261    ++outrowCount;
    259262    ++iter;
Note: See TracChangeset for help on using the changeset viewer.