DIFF_TOMO(1)

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

πŸ’– DIFF_TOMO(1) πŸ’–

okay so bestie, welcome to DIFF_TOMO(1), the manual page that's giving very niche science-girlboss energy, and I'm gonna walk you through every single line of it because you deserve to understand it fr fr 🧚✨


✨ NAME ✨

diff_tomo β€” GUI interface for reduction of diffraction tomography experiments πŸŽ€


🌸 DESCRIPTION 🌸

okay first thing, here's the usage line, copied EXACTLY, no edits, no cap:

usage: diff_map [options] -p ponifile imagefiles* If the number of files is too large, use double quotes like "*.edf"

(yes it says diff_map, that's not me being sloppy, that's literally what's written πŸ’…)

So like. Azimuthal integration for diffraction imaging. Diffraction mapping is an experiment where 2D diffraction patterns get recorded while you do a 2D scan. Diff_map is a graphical application (built on top of pyFAI and h5py, iconic combo honestly πŸ‘‘) which lets you reduce that 4D dataset down into a 3D dataset that contains the two motion dimensions plus the many diffraction angles β€” and by many I mean thousands, it's giving data hoarder 😭.

The resulting dataset can be opened using PyMca roitool, where the 1d dataset has to be selected as the last dimension. This result file aims at being NeXus compliant, which, slay. ✨

This tool can also be used for diffraction tomography experiments, considering the slow scan direction as the rotation. main character energy tbh πŸ”₯


🫢 positional arguments 🫢

  • FILE β€” List of files to integrate. Mandatory without GUI. Like, no GUI? You need this. Periodt.

πŸ’… options πŸ’…

  • -h, --help β€” show this help message and exit πŸ™ˆ
  • -V, --version β€” show program's version number and exit ⭐
  • -o FILE, --output FILE β€” HDF5 File where the processed map will be saved. Mandatory without GUI, so don't forget it bestie πŸ“
  • -v, --verbose β€” switch to verbose/debug mode, default: quiet 🀫
  • -P FILE, --prefix FILE β€” Prefix or common base for all files πŸŽ€
  • -e EXTENSION, --extension EXTENSION β€” Process all files with this extension 🌸
  • -t FAST, --fast FAST β€” number of points for the fast motion. Mandatory without GUI πŸ¦‹
  • -r SLOW, --slow SLOW β€” number of points for slow motion. Mandatory without GUI πŸ¦‹
  • -c NPT_RAD, --npt NPT_RAD β€” number of points in diffraction powder pattern. Mandatory without GUI πŸ’œ
  • --npt-azim NPT_AZIM β€” number of points in azimuthal direction, 1 for 1D integration ✨
  • -d FILE, --dark FILE β€” list of dark images to average and subtract (comma separated list) 🌈
  • -f FILE, --flat FILE β€” list of flat images to average and divide (comma separated list) 🌈
  • -m FILE, --mask FILE β€” file containing the mask, no mask by default 🫢
  • -p FILE, --poni FILE β€” file containing the diffraction parameter (poni-file), Mandatory without GUI πŸ‘‘
  • -O OFFSET, --offset OFFSET β€” do not process the first files πŸ™ˆ
  • -g, --gpu β€” process using OpenCL on GPU, ok speed demon πŸ’€
  • -S, --stats β€” show statistics at the end ⭐
  • --gui β€” Use the Graphical User Interface πŸ–₯️
  • --no-gui β€” Do not use the Graphical User Interface 🚫
  • --config CONFIG β€” provide a JSON configuration file πŸ“„
Bugs: Many, see hereafter: 1. If the number of files is too large, use double quotes "*.edf" 2. There is a known bug on Debian7 where importing a large number of file can take much longer than the integration itself: consider passing files in the command line

and that's the whole vibe check, bestie β€” no skips, no summaries, we read everything together πŸ’–

this was diff_tomo from pyFAI version ... , dated February 2023 β€” and if you made it to the bottom of this page you're literally an icon, go hydrate and run your integration πŸ§šπŸ’œβœ¨

πŸ“¦ where this page comes from