DEPRECATED! Please use xrdPlanner instead.
A tool to project X-ray diffraction cones on a detector screen at different geometries (tilt, rotation, offset) and X-ray energies
- Main application is to visualize the maximum achievable resolution at a given geometry.
- The math used is not meant to bring people to the moon but to provide a quick and simple preview.
- The module building code is designed for Dectris Pilatus3 and Eiger2 Detectors but one-module systems like the Bruker Photon II are possible as well.
- It uses python3, numpy and matplotlib 3.5.1.
- Edit the .py file:
- Choose a detector (Eiger2 or Pilatus3).
- Choose a model (300K, 1M, 2M, etc.).
- run it.
- Use the sliders to change energy and geometry.
- Use the radio buttons to change contour units.
- 2023-03-23 Update: Settings are saved to (if doesn't exist) or loaded from (if exists) a 'settings.json' file.
- 2023-03-23 Update: Added horizontal offset and slider.
- 2022-06-07 Update: Added functionality to plot Standard (LaB6, CeO2) contours (needs pyFAI).
- 2022-04-28 Update: Changed contour line generation to accept a list of 2-theta values as input.
- 2022-04-27 Update: Added support for SACLA MPCCD Detectors (central hole geometry).
- 2022-04-25 Bugfix: calculation of the beamcenter (rotation and tilt).
- 2022-04-25 Bugfix: unresponsive radio buttons / redrawing the figure.
- Choose 'Name' and 'Version' (will be used in the figure title).
- 'Name' must not start with 'Pilatus' or 'Eiger', those are pre-set.
Geometry | Value | Hint |
---|---|---|
geo.det_type | 'Name' | [str] Pilatus3 / Eiger2 |
geo.det_size | 'Version' | [str] 300K 1M 2M 6M / 1M 4M 9M 16M |
- Adjust the "ADD CUSTOM DETECTOR SPECIFICATIONS HERE" section
- The pixel size is only used to calculate the gap size
Detector | Value | Hint |
---|---|---|
det.name | 'Name Version' | [auto] Generated |
det.hms | 100.0 | [mm] Module size (horizontal) |
det.vms | 140.0 | [mm] Module size (vertical) |
det.pxs | 135e-3 | [mm] Pixel size |
det.hgp | 0 | [pix] Gap between modules (horizontal) |
det.vgp | 0 | [pix] Gap between modules (vertical) |
det.hmn | 1 | [int] Number of modules (horizontal) |
det.vmn | 1 | [int] Number of modules (vertical) |
det.cbh | 0 | [mm] Central beam hole |