Changeset 3106 for trunk/src/STLineFinder.h
- Timestamp:
- 10/04/16 18:20:50 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STLineFinder.h
r3085 r3106 70 70 // merged together. Any masked channel stops the extension 71 71 static void searchForWings(std::list<std::pair<int, int> > &newlines, 72 const casa ::Vector<casa::Int> &signs,73 const casa ::Vector<casa::Bool> &mask,72 const casacore::Vector<casacore::Int> &signs, 73 const casacore::Vector<casacore::Bool> &mask, 74 74 const std::pair<int,int> &edge); 75 75 protected: … … 153 153 // in_median true if median statistics is used as opposed to average of 154 154 // the lowest 80% of deviations (default) 155 void setOptions(const casa ::Float &in_threshold=sqrt(3.),156 const casa ::Int &in_min_nchan=3,157 const casa ::Int &in_avg_limit=8,158 const casa ::Float &in_box_size=0.2,159 const casa ::Float &in_noise_box=-1.,160 const casa ::Bool &in_median = casa::False);161 162 void setDetailedOptions( const casa ::Int &order=9 ) ;155 void setOptions(const casacore::Float &in_threshold=sqrt(3.), 156 const casacore::Int &in_min_nchan=3, 157 const casacore::Int &in_avg_limit=8, 158 const casacore::Float &in_box_size=0.2, 159 const casacore::Float &in_noise_box=-1., 160 const casacore::Bool &in_median = casacore::False); 161 162 void setDetailedOptions( const casacore::Int &order=9 ) ; 163 163 164 164 // set the scan to work with (in_scan parameter) … … 180 180 int findLines(const std::vector<bool> &in_mask, 181 181 const std::vector<int> &in_edge = std::vector<int>(), 182 const casa ::uInt &whichRow = 0);182 const casacore::uInt &whichRow = 0); 183 183 184 184 // get the mask to mask out all lines that have been found (default) … … 202 202 // array specified, rather than the field of this class 203 203 // boxsize - a number of adjacent channels to average 204 void averageAdjacentChannels(casa ::Vector<casa::Bool> &mask2update,205 const casa ::Int &boxsize);204 void averageAdjacentChannels(casacore::Vector<casacore::Bool> &mask2update, 205 const casacore::Int &boxsize); 206 206 207 207 // auxiliary function to fit and subtract a polynomial from the current 208 208 // spectrum. It uses the Fitter class. This action is required before 209 209 // reducing the spectral resolution if the baseline shape is bad 210 void subtractBaseline(const casa ::Vector<casa::Bool> &temp_mask,211 const casa ::Int &order);210 void subtractBaseline(const casacore::Vector<casacore::Bool> &temp_mask, 211 const casacore::Int &order); 212 212 213 213 // an auxiliary function to remove all lines from the list, except the … … 224 224 // nothing will be done if it is empty 225 225 // max_box_nchan - channels in the running box for baseline filtering 226 void keepStrongestOnly(const casa ::Vector<casa::Bool> &temp_mask,226 void keepStrongestOnly(const casacore::Vector<casacore::Bool> &temp_mask, 227 227 std::list<std::pair<int, int> > &lines2update, 228 228 int max_box_nchan); 229 229 private: 230 casa ::CountedPtr<Scantable> scan; // the scan to work with231 casa ::Vector<casa::Bool> mask; // associated mask230 casacore::CountedPtr<Scantable> scan; // the scan to work with 231 casacore::Vector<casacore::Bool> mask; // associated mask 232 232 std::pair<int,int> edge; // start and stop+1 channels 233 233 // to work with 234 casa ::Float threshold; // detection threshold - the234 casacore::Float threshold; // detection threshold - the 235 235 // minimal signal to noise ratio 236 casa ::Double box_size; // size of the box for running236 casacore::Double box_size; // size of the box for running 237 237 // mean calculations, specified as 238 238 // a fraction of the whole spectrum … … 241 241 // the detection criterion, to be 242 242 // a detection 243 casa ::Int avg_limit; // perform the averaging of no243 casacore::Int avg_limit; // perform the averaging of no 244 244 // more than in_avg_limit 245 245 // adjacent channels to search 246 246 // for broad lines. see setOptions 247 casa ::uInt last_row_used; // the Row number specified247 casacore::uInt last_row_used; // the Row number specified 248 248 // during the last findLines call 249 249 std::list<std::pair<int, int> > lines; // container of start and stop+1 250 250 // channels of the spectral lines 251 251 // a buffer for the spectrum 252 mutable casa ::Vector<casa::Float> spectrum;252 mutable casacore::Vector<casacore::Float> spectrum; 253 253 254 254 // the box size for off-line noise estimation (if working with 255 255 // local noise. Negative value means use global noise estimate 256 256 // Default is -1 (i.e. estimate using the whole spectrum) 257 casa ::Float itsNoiseBox;257 casacore::Float itsNoiseBox; 258 258 259 259 // true if median statistics is used as opposed to average of 260 260 // the lowest 80% of deviations (default) 261 casa ::Bool itsUseMedian;261 casacore::Bool itsUseMedian; 262 262 263 263 // true if spectra and mask data should be provided from … … 266 266 267 267 // shared object for nominal throw 268 casa ::AipsError err ;268 casacore::AipsError err ; 269 269 }; 270 270
Note: See TracChangeset
for help on using the changeset viewer.