Changeset 1268


Ignore:
Timestamp:
09/13/06 11:21:17 (18 years ago)
Author:
vor010
Message:

chan_avg_limit parameter has been added to auto_poly_baseline method. It is passed to linefinder and determines whether to search for broad weak lines to exclude them from the baseline solution. Default value is 1, which means no search for such lines.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1054 r1268  
    1 PREFIX := /usr
     1PREFIX := ./build
    22PYDIR := $(PREFIX)/lib/python2.3/site-packages
    33
  • trunk/python/scantable.py

    r1259 r1268  
    12231223
    12241224    def auto_poly_baseline(self, mask=[], edge=(0, 0), order=0,
    1225                            threshold=3, plot=False, insitu=None):
     1225                           threshold=3, chan_avg_limit=1, plot=False,
     1226                           insitu=None):
    12261227        """
    12271228        Return a scan which has been baselined (all rows) by a polynomial.
     
    12421243                        keep it large as only strong lines affect the
    12431244                        baseline solution.
     1245            chan_avg_limit: 
     1246                        a maximum number of consequtive spectral channels to
     1247                        average during the search of weak and broad lines.
     1248                        The default is no averaging (and no search for weak
     1249                        lines). If such lines can affect the fitted baseline
     1250                        (e.g. a high order polynomial is fitted), increase this
     1251                        parameter (usually values up to 8 are reasonable). Most
     1252                        users of this method should find the default value
     1253                        sufficient.
    12441254            plot:       plot the fit and the residual. In this each
    12451255                        indivual fit has to be approved, by typing 'y'
     
    12841294        # setup line finder
    12851295        fl = linefinder()
    1286         fl.set_options(threshold=threshold)
     1296        fl.set_options(threshold=threshold,avg_limit=chan_avg_limit)
    12871297
    12881298        if not insitu:
Note: See TracChangeset for help on using the changeset viewer.