DIFF_TOMO(1)

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

πŸ‘‘ DIFF_TOMO β€” bestie edition πŸ’…

okay so this is the manual page for diff_tomo, a user command from pyFAI (the version string lives down at the bottom, don't worry, we'll get there 🫢), and the page itself is dated February 2023. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

diff_tomo β€” the CLI interface for diffraction tomography data reduction. that's it, that's the whole name section, she's brief and she's iconic πŸ‘‘


🌸 SYNOPSIS 🌸

usage: diff_tomo [options] -p ponifile imagefiles*

πŸ¦‹ DESCRIPTION πŸ¦‹

so, azimuthal integration for diffraction tomography. but like, what is diffraction tomography bestie? it's an experiment where 2D diffraction patterns get recorded while you do a 2D scan: one direction (the slowest) is rotation around the sample center, and the other (the fastest) is a translation through the sample. two scans, one sample, so much drama. πŸ’€

diff_tomo is a script β€” based on pyFAI and h5py β€” that lets you reduce this 4D dataset down into a 3D dataset. and what's in that 3D dataset? the rotation angle (hundreds), the translation step (hundreds), and the many diffraction angles (thousands). literally thousands. she's got range.

the resulting dataset can be opened using the PyMca ROItool, where the 1d dataset has to be selected as the last dimension. iykyk. also, the output file aims at being NeXus compliant ✨ so that's cute of it.

and plot twist β€” this tool can be used for mapping experiments, if you consider the slow scan direction as the rotation. but the diff_map tool provides in addition a graphical user interface. so if you want buttons, go there. no cap.


πŸŽ€ positional arguments πŸŽ€

  • FILE β€” the list of files to calibrate. yes, you gotta hand her the files, she's not a mind reader πŸ™ˆ

πŸ’– options πŸ’–

  • -h, --help β€” shows this help message and exits. the classic. the main character of every CLI.
  • -V, --version β€” shows the program's version number and exits. flex your version, periodt.
  • -o FILE, --output FILE β€” the HDF5 file where the processed sinogram gets saved. by default it's diff_tomo.h5.
  • -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 NTRANS, --nTrans NTRANS β€” number of points in translation. mandatory, bestie, you cannot skip this one.
  • -r NROT, --nRot NROT β€” number of points in rotation. also mandatory πŸ’…
  • -c NDIFF, --nDiff NDIFF β€” number of points in the diffraction powder pattern. mandatory too. all three, no excuses.
  • -d FILE, --dark FILE β€” list of dark images to average and subtract.
  • -f FILE, --flat FILE β€” list of flat images to average and divide.
  • -m FILE, --mask FILE β€” file containing the mask. no mask by default.
  • -p FILE, --poni FILE β€” file containing the diffraction parameter (the poni-file). mandatory β€” and hey, remember she's the -p in the synopsis up there πŸ‘†
  • -O OFFSET, --offset OFFSET β€” do not process the first files. skipping the intro, love that for you.
  • -g, --gpu β€” process using OpenCL on GPU. zoom zoom πŸ”₯
  • -S, --stats β€” show statistics at the end. numbers, but make it a finale ⭐
⚠️ heads up bestie: if the number of files is too large, use double quotes "*.edf" β€” she said it, not me, and she's right.

🌈 SEE ALSO 🌈

no SEE ALSO section on this page, but the description does shout out diff_map for the GUI girlies 🧚 and the whole thing rides on pyFAI and h5py.


and that's the whole page, bestie!! πŸ’– diff_tomo comes from pyFAI (version string is just ..., she's mysterious like that ✨) and the page is dated February 2023. go reduce a 4D dataset into 3D, you absolute icon πŸŽ€πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from