- Timestamp:
- 06/29/09 12:00:27 (16 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/RowAccumulator.cpp
r1414 r1569 67 67 Float totalweight = weight; 68 68 MaskedArray<Float> data(v,m); 69 if ( weightType_ == asap:: VAR ) {69 if ( weightType_ == asap::W_VAR ) { 70 70 if (m.nelements() == userMask_.nelements()) { 71 71 Float fac = 1.0/variance(data(userMask_)); … … 90 90 Float w = 1.0; 91 91 tsysSum_ += v[0]; 92 if ( weightType_ == asap:: TSYS || weightType_ == asap::TINTSYS ) {92 if ( weightType_ == asap::W_TSYS || weightType_ == asap::W_TINTSYS ) { 93 93 w /= (v[0]*v[0]); 94 94 } … … 105 105 Float w = 1.0; 106 106 intervalSum_ += inter; 107 if ( weightType_ == asap:: TINT || weightType_ == asap::TINTSYS ) {107 if ( weightType_ == asap::W_TINT || weightType_ == asap::W_TINTSYS ) { 108 108 w /= Float(inter); 109 109 } -
trunk/src/RowAccumulator.h
r1398 r1569 33 33 * Constructor taking a weight type as defined in @ref STDefs 34 34 */ 35 explicit RowAccumulator(WeightType wt = asap:: NONE);35 explicit RowAccumulator(WeightType wt = asap::W_NONE); 36 36 37 37 ~RowAccumulator(); -
trunk/src/STDefs.h
r1391 r1569 34 34 35 35 namespace asap { 36 enum AxisNo { BeamAxis=0,37 IFAxis,38 PolAxis,39 ChanAxis,40 nAxes};41 36 42 37 enum Instrument {UNKNOWNINST=0, … … 53 48 enum FeedPolType {UNKNOWNFEED, LINEAR, CIRCULAR, N_POL}; 54 49 55 enum WeightType {NONE=0, VAR, TSYS, TINT, TINTSYS, N_WEIGHTTYPES}; 56 57 enum TableType {MEMORY=0, PERSISTENT}; 58 50 enum WeightType {W_NONE=0, W_VAR, W_TSYS, W_TINT, W_TINTSYS, W_N_WEIGHTTYPES}; 59 51 60 52 -
trunk/src/STMath.cpp
r1505 r1569 47 47 #include "RowAccumulator.h" 48 48 #include "STAttr.h" 49 #include "STSelector.h" 50 49 51 #include "STMath.h" 50 #include "STSelector.h"51 52 52 using namespace casa; 53 53 … … 330 330 } 331 331 332 CountedPtr<Scantable> STMath::binaryOperate(const CountedPtr<Scantable>& left, 333 const CountedPtr<Scantable>& right, 332 CountedPtr<Scantable> STMath::binaryOperate(const CountedPtr<Scantable>& left, 333 const CountedPtr<Scantable>& right, 334 334 const std::string& mode) 335 335 { … … 1176 1176 // initialize the lookup table if necessary 1177 1177 if ( lookup.empty() ) { 1178 lookup["NONE"] = asap:: NONE;1179 lookup["TINT"] = asap:: TINT;1180 lookup["TINTSYS"] = asap:: TINTSYS;1181 lookup["TSYS"] = asap:: TSYS;1182 lookup["VAR"] = asap:: VAR;1178 lookup["NONE"] = asap::W_NONE; 1179 lookup["TINT"] = asap::W_TINT; 1180 lookup["TINTSYS"] = asap::W_TINTSYS; 1181 lookup["TSYS"] = asap::W_TSYS; 1182 lookup["VAR"] = asap::W_VAR; 1183 1183 } 1184 1184 … … 1620 1620 cols[3] = String("CYCLENO"); 1621 1621 TableIterator iter(tout, cols); 1622 CountedPtr<STPol> stpol = STPol::getPolClass(out->factories_, 1622 CountedPtr<STPol> stpol = STPol::getPolClass(out->factories_, 1623 1623 out->getPolType() ); 1624 1624 while (!iter.pastEnd()) {
Note:
See TracChangeset
for help on using the changeset viewer.