DIFF_TOMO(1)
π 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 β-oFILE,--outputFILE β 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 π€«-PFILE,--prefixFILE β Prefix or common base for all files π-eEXTENSION,--extensionEXTENSION β Process all files with this extension πΈ-tFAST,--fastFAST β number of points for the fast motion. Mandatory without GUI π¦-rSLOW,--slowSLOW β number of points for slow motion. Mandatory without GUI π¦-cNPT_RAD,--nptNPT_RAD β number of points in diffraction powder pattern. Mandatory without GUI π--npt-azimNPT_AZIM β number of points in azimuthal direction,1for 1D integration β¨-dFILE,--darkFILE β list of dark images to average and subtract (comma separated list) π-fFILE,--flatFILE β list of flat images to average and divide (comma separated list) π-mFILE,--maskFILE β file containing the mask, no mask by default π«Ά-pFILE,--poniFILE β file containing the diffraction parameter (poni-file), Mandatory without GUI π-OOFFSET,--offsetOFFSET β 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 π«--configCONFIG β 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
- debian bookworm: pyfai 0.21.3+dfsg1-4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms