Changeset 1008
- Timestamp:
- 04/11/06 12:14:35 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r1000 r1008 91 91 ScalarColumn<Double> mjdColOut(tout,"TIME"); 92 92 ScalarColumn<Double> intColOut(tout,"INTERVAL"); 93 ScalarColumn<uInt> cycColOut(tout,"CYCLENO"); 93 94 94 95 // set up the output table rows. These are based on the structure of the … … 176 177 intColOut.put(i, acc.getInterval()); 177 178 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)); 178 183 acc.reset(); 179 184 } … … 321 326 CountedPtr< Scantable > out = getScantable(in, false); 322 327 Table& tout = out->table(); 323 Block<String> cols( 3);328 Block<String> cols(4); 324 329 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"); 327 333 TableIterator iter(tout, cols); 328 334 while (!iter.pastEnd()) { … … 332 338 continue; 333 339 } 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"); 337 343 Vector<Float> onspec,offspec, ontsys, offtsys; 338 344 Vector<uChar> onflag, offflag;
Note:
See TracChangeset
for help on using the changeset viewer.