Changeset 2643 for trunk/src/STMath.cpp


Ignore:
Timestamp:
08/24/12 10:52:04 (12 years ago)
Author:
ShinnosukeKawakami
Message:

hpc34 to trunk 24th Aug. 2012

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src

  • trunk/src/STMath.cpp

    r2612 r2643  
    25032503    ArrayColumn<Float> specCol(tab, "SPECTRA");
    25042504    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();
    25072507    Vector<Float> kvec = VectorKernel::make(type, width, nchan, True, False);
    25082508    Convolver<Float> conv(kvec, IPosition(1,nchan));
    2509     Vector<Float> spec;
    25102509    Vector<uChar> flag;
     2510    Vector<Bool> mask(nchan);
    25112511    for ( uInt i=0; i<tab.nrow(); ++i) {
    25122512      specCol.get(i, spec);
    25132513      flagCol.get(i, flag);
    2514       Vector<Bool> mask(flag.nelements());
    25152514      convertArray(mask, flag);
    25162515      Vector<Float> specout;
Note: See TracChangeset for help on using the changeset viewer.