Changeset 369 for trunk/python
- Timestamp:
- 02/06/05 17:40:28 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplinefind.py
r331 r369 13 13 return 14 14 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 15 40 def set_scan(self,scan,mask=None,edge=(0,0)): 16 41 """
Note:
See TracChangeset
for help on using the changeset viewer.