Versions Compared

Key

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

...

Code Block
from ImgAlgos.PyAlgos import PyAlgos

alg_arc = PyAlgos(windows=winds_arc, mask=mask_arc, pbits=2)
alg_arc.set_peak_selection_pars(npix_min=4, npix_max=500, amax_thr=0, atot_thr=600, son_min=5)   # for pfv2,4
#alg_arc.set_peak_selection_pars(npix_min=4, npix_max=500, amax_thr=0, atot_thr=600, son_min=10) # for pfv3
 
alg_equ = # all parameters are the same as for alg_arc
 
        peaks_arc = alg_arc.peak_finder_v2(nda, thr=10, r0=6, dr=0.5)                               # Flood-filling
        #peaks_arc = alg_arc.peak_finder_v3(nda, rank=6, r0=6, dr=0.5)                              # Ranker
        #peaks_arc = alg_arc.peak_finder_v4(nda, thr_low=10, thr_high=150, rank=5, r0=6, dr=0.5)    # Droplet-finder

 

This script saves a

Code Blocktitle

peak list:

true
collapse
Code Block
# Exp     Run  Date       Time      time(sec)   time(nsec) fiduc    Evnum  Reg  Seg  Row  Col  Npix      Amax      Atot   rcent   ccent rsigma  csigma rmin rmax cmin cmax    bkgd     rms     son  imrow   imcol     x[um]     y[um]     r[um]  phi[deg]
cxif5315  169  2015-02-22 02:20:47  1424600447  478050876  104418       0  EQU    1  162   30    38     257.1    2901.5   160.8    29.7   2.21    1.25  157  168   25   36    9.42   26.64    9.30    574     640      7582       550      7601      4.15
cxif5315  169  2015-02-22 02:20:47  1424600447  486382070  104421       1  ARC    7  126  386    22     153.6     818.7   126.5   383.6   2.76    1.77  121  132  381  388    1.80   19.08    7.95    143     618      5157     47858     48135     83.85
cxif5315  169  2015-02-22 02:20:47  1424600447  486382070  104421       1  EQU    1  159   28    50     172.0    2808.5   159.3    28.0   2.93    1.68  154  165   23   34    3.37   27.07    6.23    576     643      7912       331      7919      2.40
cxif5315  169  2015-02-22 02:20:47  1424600447  494719789  104424       2  EQU    1  150   33    44     154.4    1624.7   150.5    32.8   3.07    1.72  145  156   28   39    4.33   21.19    7.08    571     652      8900       883      8943      5.67

 

Peak list processing

For further peak list processing we use script:

 cxif5315/proc-cxif5315-r0169-peaks-from-file-v4.py

which uses peak selectors.

...