Changeset 2643 for trunk/src/STMath.cpp
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/hpc34 (added) merged: 2588-2590,2592,2596-2598,2601,2640,2642
- Property svn:mergeinfo changed
-
trunk/src
- Property svn:mergeinfo changed
/branches/hpc34/src (added) merged: 2589,2592,2597,2601,2640
- Property svn:mergeinfo changed
-
trunk/src/STMath.cpp
r2612 r2643 2503 2503 ArrayColumn<Float> specCol(tab, "SPECTRA"); 2504 2504 ArrayColumn<uChar> flagCol(tab, "FLAGTRA"); 2505 Vector<Float> tmpspec; specCol.get(0, tmpspec);2506 uInt nchan = tmpspec.nelements();2505 Vector<Float> spec = specCol( 0 ); 2506 uInt nchan = spec.nelements(); 2507 2507 Vector<Float> kvec = VectorKernel::make(type, width, nchan, True, False); 2508 2508 Convolver<Float> conv(kvec, IPosition(1,nchan)); 2509 Vector<Float> spec;2510 2509 Vector<uChar> flag; 2510 Vector<Bool> mask(nchan); 2511 2511 for ( uInt i=0; i<tab.nrow(); ++i) { 2512 2512 specCol.get(i, spec); 2513 2513 flagCol.get(i, flag); 2514 Vector<Bool> mask(flag.nelements());2515 2514 convertArray(mask, flag); 2516 2515 Vector<Float> specout;
Note:
See TracChangeset
for help on using the changeset viewer.