Changeset 1106 for trunk/src/STMath.h
- Timestamp:
- 08/03/06 10:28:39 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.h
r1078 r1106 30 30 31 31 /** 32 Mathmatical operations on Scantable objects 33 34 @author Malte Marquarding 32 * Mathmatical operations on Scantable objects 33 * @author Malte Marquarding 35 34 */ 36 35 class STMath : private Logger { 37 36 public: 38 37 // typedef for long method name 39 38 typedef casa::InterpolateArray1D<casa::Double, 40 39 casa::Float>::InterpolationMethod imethod; 41 40 41 // typedef for std::map 42 42 typedef std::map<std::string, imethod> imap; 43 43 44 /** 45 * whether to operate on the given Scantable or return a new one 46 * @param insitu the toggle for this behaviour 47 */ 44 48 STMath(bool insitu=true); 45 49 … … 47 51 48 52 /** 49 * set the @attr insitu attribute 50 * @param b 53 * get the currnt @attr inistu state 51 54 */ 52 55 bool insitu() const { return insitu_;}; 56 57 /** 58 * set the currnt @attr inistu state 59 * @param b the new state 60 */ 53 61 void setInsitu(bool b) { insitu_ = b; }; 54 62 63 64 /** 65 * average a vector of Scantables 66 * @param in the vector of Scantables to average 67 * @param an optional mask to apply on specific weights 68 * @param weight weighting scheme 69 * @param avmode the mode ov averaging. Per "SCAN" or "ALL". 70 * @return a casa::CountedPtr<Scantable> which either holds a new Scantable 71 * or returns the imput pointer. 72 */ 55 73 casa::CountedPtr<Scantable> 56 74 average( const std::vector<casa::CountedPtr<Scantable> >& in, … … 59 77 const std::string& avmode = "SCAN"); 60 78 79 /** 80 * median average a vector of Scantables. See also STMath::average 81 * @param in the Scantable to average 82 * @param mode the averaging mode. Currently only "MEDIAN" 83 * @param avmode the mode ov averaging. Per "SCAN" or "ALL". 84 * @return a casa::CountedPtr<Scantable> which either holds a new Scantable 85 * or returns the imput pointer. 86 */ 61 87 casa::CountedPtr<Scantable> 62 88 averageChannel( const casa::CountedPtr<Scantable> & in, … … 122 148 rotateLinPolPhase( const casa::CountedPtr<Scantable>& in, float phase); 123 149 124 /// @todo frequency alignment125 126 150 casa::CountedPtr<Scantable> 127 151 swapPolarisations(const casa::CountedPtr<Scantable>& in);
Note: See TracChangeset
for help on using the changeset viewer.