Spot ID v2¶
Spot ID v2 detects, fits and indexes diffraction spots on an experimental diffraction image. Spot ID v1 (the former TEM ID) instead takes the spot geometry as numeric input.
Keyboard & mouse shortcuts¶
You build the spot list directly on the loaded image. The image pane uses ReciPro's standard image-view navigation for pan/zoom; spot editing adds the combinations below.
| Shortcut | Action |
|---|---|
| F1 | Open this page of the online manual |
| Left double-click the image | Add a spot at that point (peak-fitted) |
| CTRL + Left double-click | Add a spot and mark it as the direct (000) beam |
| Left-click a spot | Select the nearest spot |
| CTRL + Right-click a spot | Delete the nearest spot |
| CTRL + arrow keys | Nudge the selected spot by one screen pixel |
| Hold SHIFT and left-click three spots in turn | Measure the angle on the image: end → vertex → end (e.g. ∠6–0–8). Lines, an arc and the value are drawn on the image, and the value (∠6–0–8 = 89.73°) appears in the status bar. SHIFT + left-click another spot to start a new measurement; SHIFT + left-click away from every spot, or ESC, clears it |
| Left-drag / Middle-drag (empty area) | Pan the image |
| Mouse wheel | Zoom in / out at the cursor |
| Right-drag a box | Zoom in to the selected region |
| Right-click / Right double-click | Zoom out (×1/1.2; a double-click counts twice) |
| Double-click a spot's row header (table) | Zoom to that spot (×2) |
These combinations are also listed in the window's Shortcut hints menu.
→ See 21. Keyboard & mouse shortcuts for every window at a glance.
File menu¶
Open a diffraction image; Save / Copy write the displayed image as a Metafile (EMF) or an image (PNG). Images can also be loaded by drag and drop. TIFF images may be uncompressed or LZW-, Deflate (zip)- or PackBits-compressed. For a Gatan DM3/DM4 file calibrated in nm⁻¹, the radiation is set to electrons and the accelerating voltage and the pixel size (nm⁻¹) are read from the file (the camera length is not needed in that case).
Save ▸ Candidate list (CSV)... exports the orientation candidates found by the indexing, and Copy ▸ Candidate list (TSV) puts the same table on the clipboard: one row per candidate × grain, with the rank, the grain index, the crystal name, the ZXZ Euler angles (°), the nine rotation-matrix elements, the mean-squared residual (nm⁻²), the number of assigned spots and the spot → (hkl) assignments. The CSV always uses a period as the decimal separator; the TSV can be pasted straight into a spreadsheet.
Optics¶
Incident source¶
Select the radiation type (X-ray / electron / neutron) and set the energy or wavelength.
Camera length / Pixel size¶
The camera length (mm) and detector pixel size (mm or nm⁻¹). When a Gatan DM file calibrated in nm⁻¹ is loaded, the pixel size (nm⁻¹) is read from the file header and the camera length is not used (the camera-length box is disabled while the unit is nm⁻¹). Changing the wavelength, the camera length or the pixel-size unit keeps the spot positions (pixels) and recalculates their d-spacings with the new calibration.
The window position and the calibration (source, energy, camera length, and the pixel-size unit and value) are kept for the next start; opening an image file that carries a calibration overwrites them.
Show Debye rings (default off) draws the Debye rings of every crystal selected in the main window — each crystal in its own colour when several are selected — centred on the direct spot and with the current calibration (wavelength, camera length, pixel size); rings of reflections forbidden by the extinction rules are not drawn. Show guide circles (default on) draws guide circles on the pattern.
Spot information¶
- Detect & fit spots: Automatic spot detection using local maxima and background subtraction.
- Number: The maximum number of spots to detect.
- Nearest neighbor: The minimum separation (px) allowed between detected spots. Peaks closer than this are merged, preventing double-detection of the same spot.
- Fitting range (radius): The radius (px) of the circular region used to fit each spot's peak. Pixels inside this circle are fitted with a pseudo-Voigt function.
- Apply to all: Sets the fitting radius of every spot to the current Fitting range (radius) value.
- Delete / Clear all spots: Remove the selected spot, or all detected spots.
- Save / Copy: Save the spot table to a CSV file, or copy it to the clipboard as tab-separated text. Both work even with a single spot. The CSV always uses a period as the decimal separator and can be read back with File ▸ Load... (an image must be loaded first; the spots are added to those already listed).
- Re-fit all: Re-fit the positions and intensities of all detected spots.
- Show symbols / Show numbers: Show marker symbols / numbers on the observed spots (both on by default).
- Global fit: Perform a global fit of all spot positions at once (experimental).
- Donut: Apply donut-shaped background subtraction (experimental); the adjacent box sets the width (px) of the annular ring around each spot whose average is subtracted as the local background.
- Details of the spot: When checked, opens a window showing detailed information about the currently selected spot.
- Details of the fitting function (off when the window opens): Show a figure of the two-dimensional pseudo-Voigt function and its parameters (x_0, y_0, H1, H2, θ, η, A, B_0, B_x, B_y) used in the spot table.
Index¶
- Identify spots: Run the indexing algorithm to find the best-matching crystal and zone axis. While it runs, a Stop button takes its place and interrupts the search. It needs a loaded image, at least two spots and at least one crystal selected in the crystal list of the main window; otherwise a message says what is missing. While Spot ID v2 is open, the main window's crystal list allows multiple selection.
- Acceptable error: Relative d-spacing tolerance in % (0.1–10, default 2). For a tolerance of p %, the angle tolerance between spots is ½ arcsin(p/100) rad (about 0.573° for the default 2 %).
- Ignore prohibited reflections (default off; electron diffraction only): When checked, all systematically absent reflections, including those forbidden by screw axes and glide planes, are excluded from the candidate reflections. When unchecked, only the absences due to lattice centring (I, F, A, B, C, R) are excluded, so screw/glide-forbidden reflections that can appear through multiple diffraction remain candidates. For X-rays and neutrons all absent reflections are always excluded (kinematical treatment); the box is then shown checked and greyed out, and returns to its previous state when the source is set back to electrons.
- Single grain / Multiple grains: Search for a single orientation (single crystal), or for several orientations (a polycrystalline / multi-grain region). For multiple grains, Max. num. of grains sets the upper limit on the number of grains to search for.
- Show zone axis / Show symbol / Show label: Overlay the zone axis and the symbols / index labels of the calculated spots.
- Refine thickness & direction (only for SAED): Works only with Electron as the source (otherwise the status bar says so and nothing is computed). Refine the specimen thickness (nm) and the beam direction of the selected grain by matching the observed spot intensities to dynamical (Bloch-wave) calculations. Diffracted waves (1–2048, default 400) is the number of beams, and Search angle range (mrad, 1–10, default 2) is the angular half-range of incident directions searched. The refinement cannot be interrupted (the Stop button belongs to Identify spots only); the window is disabled until it finishes. Thicknesses of 50–549 nm (1 nm step) and incident directions on a square grid around the current orientation of the grain (step = 1/15 of the search range) are tried, and the pair that minimises Σ (Iobs − a·Icalc)² over the indexed spots (a: best scale factor) is taken. The best thickness is passed to the Diffraction simulator, and the orientation of the grain (also applied to the main window, unless the crystal there was changed during the calculation) is tilted so that the best direction becomes the beam direction; the in-plane rotation is kept. The result (thickness, tilt in mrad, zone axis, residual) is shown in the status bar. If the best direction lies at the edge of the search range, the status bar says so, because the optimum may lie outside it: press the button again (the search is then centred on the refined orientation) or widen the range.
- Results: The best matches are displayed with crystal name, zone axis [uvw], and individual spot indices (hkl). Selecting a single grain row also selects its crystal in the main window and sets that orientation.




