Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Peak selection parameters

Internal peak selection can be is done at the end of each peak finder, but all peak selection parameters need to be defined right after algorithm object is created, for example, as follows.  These peak selection parameters are set for all peak-finders:

Code Block
# create object:
alg = PyAlgos(windows=winds, mask=mask)

# set peak-selector parameters:
alg.set_peak_selection_pars(npix_min=5, npix_max=5000, amax_thr=0, atot_thr=0, son_min=10)
  • npix_min: minimum number of pixels that pass the "low threshold" cut
  • npix_max: maximum number of pixels that pass the "low threshold" cut
  • amax_thr: pixel value must be greater than this high threshold to start a peak
  • atot_thr: to be considered a peak the sum of all pixels in a peak must be greater than this value
  • son_min: required signal-over-noise (where noise region is typically evaluated with radius/dr parameters)

All peak finders have a few algorithm-dependent parameters

...