Ignore:
Timestamp:
02/06/05 17:40:28 (19 years ago)
Author:
vor010
Message:

SDLineFinder: bug corrections, setOption method
has been added + fitting baseline at each iterations to cope with bad
baselines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplinefind.py

    r331 r369  
    1313        return
    1414
     15    def set_options(self,threshold=1.7320508075688772,min_nchan=3,
     16        avg_limit=8,box_size=0.2):
     17        """
     18        Set the parameters of the algorithm
     19        Parameters:
     20             threshold    a single channel S/N ratio above which the
     21                          channel is considered to be a detection
     22                          Default is sqrt(3), which together with
     23                          min_nchan=3 gives a 3-sigma criterion
     24             min_nchan    a minimal number of consequtive channels,
     25                          which should satisfy a threshold criterion to
     26                          be a detection. Default is 3.
     27             avg_limit    A number of consequtive channels not greater than
     28                          this parameter can be averaged to search for
     29                          broad lines. Default is 8.
     30             box_size     A running mean box size specified as a fraction
     31                          of the total spectrum length. Default is 1/5
     32        Note:  For bad baselines threshold should be increased,
     33               and avg_limit decreased (or even switched off completely by
     34               setting this parameter to 1) to avoid detecting baseline
     35               undulations instead of real lines. 
     36        """
     37        self.finder.setoptions(threshold,min_nchan,avg_limit,box_size)
     38        return
     39             
    1540    def set_scan(self,scan,mask=None,edge=(0,0)):
    1641        """
Note: See TracChangeset for help on using the changeset viewer.