Tags

pyFAI calibration gui operations for InstantPlot

InstantPlot documentation is here: https://wiki.classe.cornell.edu/CHESS/FMB/InstantPlot

Running the pyFAI calibration gui

  • On NoMachine, open a terminal window and connect to a node that is not lnx201 or the station computer.
    • Run qrsh -q chess_fmb.q for FMB node; or
    • qrsh -q interactive.q -pe sge_pe 32 for a paralle processing node
  • Run source /nfs/chess/sw/miniconda3_msnc/envs/saxswaxs-viewer/bin/activate
    • (alternative: run source /nfs/chess/sw/miniconda3_msnc/bin/activate then run conda activate saxswaxs-viewer)
  • Run pyFAI-calib2 to open the gui. It will open to the “Experiment settings” screen.
  • Enter beam energy, choose calibrant, choose detector name
  • Navigate to data file (/nfs/chess/raw/current/id3b/[username-BTR-ID]/). Be sure to match the “PIL#” string in the filename to the detector you want to calibrate.
    • PIL5 = SAXS detector, pilatus 300K
    • PIL9, PIL11 = WAXS detectors, pilatus 200Ks
    • Make sure to choose "orient Y-axis downard"
  • Click Next for mask tab.
    • Dead pixels between panels should automatically show up magenta (masked).
    • Also good to hit “mask below” with a threshold of 0 to remove any other dead pixels
    • Use the polygon under “draw tools” to exclude other regions (like the beamstop). click once on the start point to close the shape.
    • You can save the mask (as a .tif) from this screen for use in InstantPlot later

  • Click Next for peak picking.
    • Use multiple or single point selection tools to select points on the rings in your image. ring number corresponds to first, second, third peak etc.

  • Click Next to see fitting results. If something looks off, go back to the peak picking tab and make sure there aren’t outlier points or misnumbered rings; make sure you get points on rings close to the edges of the detector when possible.
    • PIL11 is above the beam and rotated on its side 90 degrees. Need to manually change rot3 = 1.57 rad and fit again before continuing on.

  • Click Next to see cake plot and 1D I vs q. If it looks good, use “Save as PONI file” to save a .poni file for this detector.
    • File names typically: Calibrant_PIL#_date.poni or something similar
    • You can switch the x-axis unit under the “radial unit” drop down menu

Official documentation

Official documention for the GUI is here: pyFAI-calib2

-- LouisaSmieska - 23 Feb 2022
Topic revision: r4 - 27 Jan 2025, PeterKo
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CLASSE Wiki? Send feedback