MX-CALIBRATE(1)

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

✨ MX-CALIBRATE(1) β€” User Commands πŸŽ€

✨ NAME ✨

MX-Calibrate is the tool that calibrates the distance of a detector from a set of powder diffraction patterns πŸ’–

✨ SYNOPSIS ✨

MX-Calibrate -w 1.54 -c CeO2 file1.cbf file2.cbf ...

✨ DESCRIPTION ✨

okay so bestie, this is the usage line πŸ’…

usage: MX-Calibrate -w 1.54 -c CeO2 file1.cbf file2.cbf ...

It automatically calibrates a whole batch of frames that were taken at different sample-detector distances πŸ¦‹ Then it hands you back the linear regression of the fit as a function of that sample-detector distance. Literally so iconic πŸ”₯

✨ positional arguments ✨

  • FILE β€” the list of files you want to calibrate πŸ“‚

✨ options ✨

  • -h, --help β€” shows the help message and exits 🫢
  • -V, --version β€” shows the program's version number and exits 🌸
  • -v, --verbose β€” flips on debug/verbose mode so you can see everything ✨
  • -c FILE, --calibrant FILE β€” the file with the d-spacing of your calibrant reference sample. This one is MANDATORY πŸ’€
  • -w WAVELENGTH, --wavelength WAVELENGTH β€” the wavelength of the X-Ray beam, in Angstrom 🌈
  • -e ENERGY, --energy ENERGY β€” the energy of the X-Ray beam, in keV. The constant in use is hc=12.398419843320026keV.A πŸ”₯
  • -P POLARIZATION_FACTOR, --polarization POLARIZATION_FACTOR β€” the polarization factor, going from -1 (vertical) to +1 (horizontal). The default is 0, and synchrotrons sit around 0.95 ⭐
  • -b BACKGROUND, --background BACKGROUND β€” automatic background subtraction happens if you don't give it a value 🧚
  • -d DARK, --dark DARK β€” a list of dark images that get averaged and then subtracted πŸŒ™
  • -f FLAT, --flat FLAT β€” a list of flat images that get averaged and then divided πŸ“
  • -s SPLINE, --spline SPLINE β€” the spline file that describes the detector distortion πŸ¦‹
  • -p PIXEL, --pixel PIXEL β€” the size of the pixel, in micron πŸ’œ
  • -D DETECTOR_NAME, --detector DETECTOR_NAME β€” the detector name, which you use instead of pixel size + spline πŸŽ€
  • -m MASK, --mask MASK β€” the file containing the mask, used for image reconstruction 🫧
  • --filter FILTER β€” picks the filter: mean (the default), max or median πŸ’…
  • --saturation SATURATION β€” any pixel where pixel>max*(1-saturation) gets treated as saturated and reconstructed πŸ”₯
  • -r MAX_RINGS, --ring MAX_RINGS β€” the maximum number of rings to extract πŸ’–
  • --weighted β€” weights the fit by intensity ✨
  • -l DISTANCE, --distance DISTANCE β€” the sample-detector distance, in millimeter πŸ“
  • --tilt β€” lets the initial detector tilt get refined (rot1, rot2, rot3). Default: Activated πŸ¦‹
  • --no-tilt β€” turns off tilt refinement and sets all the rotations to 0 πŸ™ˆ
  • --dist DIST β€” the sample-detector distance, but in meter this time πŸ“
  • --poni1 PONI1 β€” the poni1 coordinate, in meter 🌸
  • --poni2 PONI2 β€” the poni2 coordinate, in meter 🌸
  • --rot1 ROT1 β€” rot1, in radians πŸŒ€
  • --rot2 ROT2 β€” rot2, in radians πŸŒ€
  • --rot3 ROT3 β€” rot3, in radians πŸŒ€
  • --fix-dist β€” locks the distance parameter in place πŸ”’
  • --free-dist β€” unlocks the distance parameter πŸ”“
  • --fix-poni1 β€” locks the poni1 parameter πŸ”’
  • --free-poni1 β€” unlocks the poni1 parameter πŸ”“
  • --fix-poni2 β€” locks the poni2 parameter πŸ”’
  • --free-poni2 β€” unlocks the poni2 parameter πŸ”“
  • --fix-rot1 β€” locks the rot1 parameter πŸ”’
  • --free-rot1 β€” unlocks the rot1 parameter πŸ”“
  • --fix-rot2 β€” locks the rot2 parameter πŸ”’
  • --free-rot2 β€” unlocks the rot2 parameter πŸ”“
  • --fix-rot3 β€” locks the rot3 parameter πŸ”’
  • --free-rot3 β€” unlocks the rot3 parameter πŸ”“
  • --fix-wavelength β€” locks the wavelength parameter πŸ”’
  • --free-wavelength β€” unlocks the wavelength parameter πŸ”“
  • --no-gui β€” forces the program to run without a Graphical interface πŸ™…
  • --gui β€” forces the program to run with a Graphical interface πŸ–ΌοΈ
  • --no-interactive β€” forces the program to run and exit without prompting you for refinements πŸ€–
  • --interactive β€” forces the program to prompt you for refinements πŸ’¬
  • --peak-picker PEAKPICKER β€” uses the massif, blob or watershed peak-picker algorithm. The default is blob ⛰️
This tool was built for ESRF MX-beamlines, where an acceptable calibration is usually already sitting in the header of the image. PyFAI reads that header and runs a "recalib" on each frame before exporting a linear regression of all the parameters versus this distance. Dramatic? Yes. Necessary? Also yes πŸ‘‘

Bye bestie 🫢 this page is from pyFAI versi..., February 2023, and you're officially a calibration pro now πŸ’…βœ¨ MX-CALIBRATE(1) 🌈

πŸ“¦ where this page comes from