Changeset 1268 for trunk/python


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.