Changeset 2726 for trunk/src/STSideBandSep.h
- Timestamp:
- 01/10/13 20:37:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STSideBandSep.h
r2712 r2726 36 36 * constructors and a destructor 37 37 **/ 38 STSideBandSep() ;39 //explicit STSideBandSep(const vector<string> infile);40 //explicit STSideBandSep(const vector<ScantableWrapper> &tables);38 STSideBandSep() { throw( AipsError("No data set to process") ); }; 39 explicit STSideBandSep(const vector<string> &names); 40 explicit STSideBandSep(const vector<ScantableWrapper> &tables); 41 41 virtual ~STSideBandSep(); 42 42 43 43 /** 44 * Set parameters for sideband separation44 * Set IFNO and frequency tolerance to select data to process 45 45 **/ 46 void setFrequency(const unsigned int ifno, const double freqtol, string frame=""); 46 void setFrequency(const unsigned int ifno, const string freqtol, 47 const string frame=""); 48 49 /** 50 * Set direction tolerance to group spectra. 51 * The spectra within this range will be averaged before procesing. 52 **/ 53 void setDirTolerance(const vector<string> dirtol); 54 55 /** 56 * Set the number of channels shifted in image side band 57 * of each of scantable. 58 **/ 59 void setShift(const vector<double> &shift); 60 61 /** 62 * Set rejection limit of solution. 63 **/ 64 void setThreshold(const double limit); 65 66 /** 67 * Resolve both image and signal sideband when true is set. 68 **/ 69 void solveBoth(const bool flag) { doboth_ = flag; }; 70 71 /** 72 * Obtain spectra by subtracting the solution of the other sideband. 73 **/ 74 void solvefromOther(const bool flag) { otherside_ = flag; }; 47 75 48 76 /** … … 51 79 void setImageTable(const ScantableWrapper &s); 52 80 void setScanTb0(const ScantableWrapper &s); 81 53 82 /** 54 83 * Set additional information to fill frequencies of image sideband 55 84 **/ 56 void setLO1(const double lo1, string frame="TOPO", double reftime=-1, string refdir=""); 85 void setLO1(const double lo1, const string frame="TOPO", 86 const double reftime=-1, string refdir=""); 57 87 void setLO1Root(const string name); 88 58 89 /** 59 90 * Actual calculation of frequencies of image sideband … … 62 93 63 94 private: 95 /** Initialize member variables **/ 96 void init(); 97 void initshift(); 98 99 /** Return if the path exists (optionally, check file type) **/ 64 100 Bool checkFile(const string name, string type=""); 101 102 /** 103 * Get LO1 frequency to solve the frequencies of image side band 104 **/ 65 105 bool getLo1FromAsdm(const string asdmname, 66 106 const double refval, const double refpix, … … 73 113 const double increment, const int nChan); 74 114 115 /** Member variables **/ 116 // input tables 117 vector<string> infileList_; 118 vector< CountedPtr<Scantable> > intabList_; 119 unsigned int ntable_; 120 // frequency and direction setup to select data. 75 121 unsigned int sigIfno_; 76 double ftol_; 122 Quantum<Double> ftol_; 123 MFrequency::Types solFrame_; 124 vector<double> sigShift_, imgShift_; 125 unsigned int nshift_, nchan_; 126 vector< CountedPtr<Scantable> > tableList_; 127 Double xtol_, ytol_; 128 // solution parameters 129 bool otherside_, doboth_; 130 double rejlimit_; 131 // LO1 77 132 double lo1Freq_; 78 133 MFrequency::Types loFrame_;
Note: See TracChangeset
for help on using the changeset viewer.