Changeset 2794 for trunk/src/STSideBandSep.h
- Timestamp:
- 03/15/13 18:23:04 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STSideBandSep.h
r2726 r2794 22 22 #include <coordinates/Coordinates/DirectionCoordinate.h> 23 23 #include <coordinates/Coordinates/SpectralCoordinate.h> 24 #include <scimath/Mathematics/FFTServer.h> 24 25 // asap 25 26 #include "ScantableWrapper.h" … … 40 41 explicit STSideBandSep(const vector<ScantableWrapper> &tables); 41 42 virtual ~STSideBandSep(); 43 44 ///////////// temp functions ////////////////////// 45 //void cpprfft(std::vector<float> invec); 46 ////////////////////////////////////////////////// 47 48 /** 49 * Separate side bands 50 **/ 51 void separate(string outname); 42 52 43 53 /** … … 83 93 * Set additional information to fill frequencies of image sideband 84 94 **/ 85 void setLO1(const doublelo1, const string frame="TOPO",95 void setLO1(const string lo1, const string frame="TOPO", 86 96 const double reftime=-1, string refdir=""); 87 97 void setLO1Root(const string name); 88 89 /**90 * Actual calculation of frequencies of image sideband91 **/92 void solveImageFreqency();93 98 94 99 private: … … 99 104 /** Return if the path exists (optionally, check file type) **/ 100 105 Bool checkFile(const string name, string type=""); 106 107 /** **/ 108 unsigned int setupShift(); 109 bool getFreqInfo(const CountedPtr<Scantable> &stab, const unsigned int &ifno, 110 double &freq0, double &incr, unsigned int &nchan); 111 112 /** Grid scantable **/ 113 ScantableWrapper gridTable(); 114 void mapExtent(vector< CountedPtr<Scantable> > &tablist, 115 Double &xmin, Double &xmax, 116 Double &ymin, Double &ymax); 117 118 /** 119 * Actual calculation of frequencies of image sideband 120 **/ 121 void solveImageFrequency(); 101 122 102 123 /** … … 112 133 const double refval, const double refpix, 113 134 const double increment, const int nChan); 135 bool getSpectraToSolve(const int polId, const int beamId, 136 const double dirX, const double dirY, 137 Matrix<float> &specmat, vector<uInt> &tabIdvec); 138 139 vector<float> solve(const Matrix<float> &specmat, 140 const vector<uInt> &tabIdvec, 141 const bool signal = true); 142 143 void shiftSpectrum(const Vector<float> &invec, double shift, 144 Vector<float> &outvec); 145 146 void deconvolve(Matrix<float> &specmat, const vector<double> shiftvec, 147 const double threshold, Matrix<float> &outmat); 148 149 void aggregateMat(Matrix<float> &inmat, vector<float> &outvec); 150 151 void subtractFromOther(const Matrix<float> &shiftmat, 152 const vector<float> &invec, 153 const vector<double> &shift, 154 vector<float> &outvec); 155 156 114 157 115 158 /** Member variables **/ … … 119 162 unsigned int ntable_; 120 163 // frequency and direction setup to select data. 121 unsignedint sigIfno_;164 int sigIfno_; 122 165 Quantum<Double> ftol_; 123 166 MFrequency::Types solFrame_; … … 130 173 double rejlimit_; 131 174 // LO1 132 double lo1Freq_; 175 double lo1Freq_; // in Hz 133 176 MFrequency::Types loFrame_; 134 177 double loTime_; … … 136 179 string asdmName_, asisName_; 137 180 181 //CountedPtr<Scantable> imgTab_p, sigTab_p; 138 182 CountedPtr<Scantable> imgTab_p, sigTab_p; 183 Table::TableType tp_; 184 FFTServer<Float, Complex> fftsf, fftsi; 139 185 // TEMPORAL member 140 186 CountedPtr<Scantable> st0_;
Note: See TracChangeset
for help on using the changeset viewer.