Ignore:
Timestamp:
02/06/05 19:46:16 (19 years ago)
Author:
vor010
Message:

LineFinder?: help is improved. Initial code for
automatic baseline fitter is written (not debugged yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDLineFinder.h

    r369 r370  
    169169                const boost::python::tuple &in_edge) throw(casa::AipsError);
    170170
    171    // search for spectral lines. Number of lines found is returned
    172    int findLines() throw(casa::AipsError);
     171   // search for spectral lines for a row specified by whichRow and
     172   // Beam/IF/Pol specified by current cursor set for the scantable
     173   // Number of lines found is returned   
     174   int findLines(const casa::uInt &whichRow = 0) throw(casa::AipsError);
    173175
    174176   // get the mask to mask out all lines that have been found (default)
     
    179181   std::vector<bool> getMask(bool invert=false) const throw(casa::AipsError);
    180182
    181    // get range for all lines found. If defunits is true (default), the
    182    // same units as used in the scan will be returned (e.g. velocity
    183    // instead of channels). If defunits is false, channels will be returned
    184    std::vector<int>   getLineRanges(bool defunits=true)
    185                                 const throw(casa::AipsError);
     183   // get range for all lines found. The same units as used in the scan
     184   // will be returned (e.g. velocity instead of channels).   
     185   std::vector<double>   getLineRanges() const throw(casa::AipsError);
     186   // The same as getLineRanges, but channels are always used to specify
     187   // the range
     188   std::vector<int> getLineRangesInChannels() const throw(casa::AipsError);
    186189protected:
    187190   // auxiliary function to average adjacent channels and update the mask
     
    236239                                           // adjacent channels to search
    237240                                           // for broad lines. see setOptions
     241   casa::uInt last_row_used;                // the Row number specified
     242                                           // during the last findLines call
    238243   std::list<std::pair<int, int> > lines;  // container of start and stop+1
    239244                                           // channels of the spectral lines
Note: See TracChangeset for help on using the changeset viewer.