Changeset 2601
- Timestamp:
- 07/19/12 07:25:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hpc34/src/STMath.cpp
r2580 r2601 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.