- Timestamp:
- 06/11/12 17:40:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hpc33/src/STMath.cpp
r2556 r2557 3943 3943 // off scan 3944 3944 STSelector orig = s->getSelection() ; 3945 STSelector sel = orig ;3946 vector<int> typesOrig = orig.getTypes() ;3947 vector<int> types = typesOrig ;3948 types.push_back( SrcType::PSOFF ) ;3949 sel.setTypes( types ) ;3950 s->setSelection( sel ) ;3951 3945 // TODO 2010/01/08 TN 3952 3946 // Grouping by time should be needed before averaging. … … 3956 3950 insitu_ = false ; 3957 3951 // share off scan before average with out 3958 CountedPtr<Scantable> out = getScantable( s, false ) ; 3952 CountedPtr<Scantable> out = getScantable( s, true ) ; 3953 Table t = s->table_( s->table_.col("SRCTYPE") == (Int)SrcType::PSOFF ) ; 3954 TableCopy::copyRows( out->table(), t ) ; 3959 3955 insitu_ = insitu ; 3960 3956 Table ttab = out->table() ; … … 4003 3999 // double t3 = mathutil::gettimeofday_sec() ; 4004 4000 // cout << "aoff.nrow = " << aoff->nrow() << endl ; 4005 sel = orig ;4006 4001 // t1 = mathutil::gettimeofday_sec() ; 4007 4002 // cout << "elapsed time for off averaging: " << t1-t0 << " sec" << endl ; … … 4010 4005 // on scan 4011 4006 // t0 = mathutil::gettimeofday_sec() ; 4012 types[types.size()-1] = SrcType::PSON ; 4013 sel.setTypes( types ) ; 4014 s->setSelection( sel ) ; 4007 s->table_ = s->table_( s->table_.col("SRCTYPE") == (Int)SrcType::PSON ) ; 4008 s->attach() ; 4015 4009 out->table().addRow( s->nrow()-out->nrow() ) ; 4016 4010 copyRows( out->table(), s->table(), 0, 0, s->nrow(), False ) ; 4017 sel.reset() ;4018 4011 // t1 = mathutil::gettimeofday_sec() ; 4019 4012 // cout << "elapsed time for preparing output table: " << t1-t0 << " sec" << endl ; … … 4028 4021 cols[2] = "IFNO" ; 4029 4022 STIdxIter *iter = new STIdxIterAcc( out, cols ) ; 4023 STSelector sel ; 4030 4024 while ( !iter->pastEnd() ) { 4031 4025 Vector<uInt> ids = iter->current() ;
Note:
See TracChangeset
for help on using the changeset viewer.