PYFAI-AVERAGE(1)

πŸ“¦
version 0.21.3 Β· 2 versions
, in debian bookworm

πŸ’– PYFAI-AVERAGE πŸ’–

okay bestie, welcome to pyFAI-average, a manual page for the utility that averages out a serie of files πŸŽ€ (yes, "serie", the tool said what it said, we respect it).


✨ NAME ✨

pyFAI-average β€” utility that averages out a serie of files πŸ’…


🌸 DESCRIPTION 🌸

so like. here's the vibe:

usage: pyFAI-average [options] [options] -o output.edf file1.edf file2.edf ...

This tool can be used to average out a set of dark current images using mean or median filter (along the image stack). πŸ¦‹ One can also reject outliers be specifying a cutoff (remove cosmic rays / zingers from dark). no cap, it really does both.


πŸŽ€ positional arguments:

  • FILE β€” Files to be processed. that's it, that's the whole job, just hand over the files bestie πŸ’–

πŸ’… options:

  • -h, --help β€” show this help message and exit ✨
  • -V, --version β€” show program's version number and exit πŸ‘‘
  • -o OUTPUT, --output OUTPUT β€” Output/ destination of average image 🌈
  • -m METHOD, --method METHOD β€” Method used for averaging, can be 'mean' (default) or 'min', 'max', 'median', 'sum', 'quantiles' , 'cutoff', 'std'. Multiple filters can be defined with , separator. πŸ”₯ yes you can stack them, main character energy fr fr
  • -c CUTOFF, --cutoff CUTOFF β€” Take the mean of the average +/- cutoff * std_dev. 🧚
  • -F FORMAT, --format FORMAT β€” Output file/image format (by default EDF) πŸ“
  • -d DARK, --dark DARK β€” Dark noise to be subtracted πŸ’œ
  • -f FLAT, --flat FLAT β€” Flat field correction 🌸
  • -v, --verbose β€” switch to verbose/debug mode πŸ”
  • -q QUANTILES, --quantiles QUANTILES β€” average out between two quantiles - -q 0.20-0.90 ✨
  • --monitor-name MONITOR_KEY β€” Name of the monitor in the header of each input files. If defined the contribution of each input file is divided by the monitor. If the header does not contain or contains a wrong value, the contribution of the input file is ignored. On EDF files, values from 'counter_pos' can accessed by using the expected mnemonic. For example 'counter/bmon'. πŸ‘€ (read that twice, it's giving very specific and very on purpose)
  • --quiet β€” Only error messages are printed out 🀫
⚠️ heads up bestie: with --monitor-name, if the header doesn't contain the monitor or contains a wrong value, the contribution of the input file is ignored. that's not a suggestion, that's what happens. πŸ’€

It can also be used to merge many images from the same sample when using a small beam and reduce the spotty-ness of Debye-Sherrer rings. In this case the "max-filter" is usually recommended. πŸ¦‹βœ¨


and that's the whole page, you ate it, periodt πŸ’…

this was pyFAI-average version 0.21.3, dated February 2023 πŸŽ€ mwah, love u, go average something iconic πŸ’–πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from