The 4D STEM Panel
- Opening a scan
- Layout
- Navigating the scan
- Pan and zoom
- Scan settings
- Diffraction settings
- Calibration
- Fourier filter
- Exporting images
- Status bar readout
Opening a scan
Drag a 4D-STEM signal (4D, 4Dt or 4Dts) from the Data tab onto the canvas: Nexus opens it in a 4D STEM panel. You can also drag the 4D STEM button from the Panels tab onto the canvas and then drop a scan into it. A 4D STEM panel shows a 4D-STEM scan and nothing else.
The first time a scan is shown, Nexus makes one pass over the file to compute its overview: the sum image, the centre-of-mass (CoM) maps, and the mean and maximum diffraction pattern. On a large acquisition this takes a moment, and the panel shows a loading indicator meanwhile.
Layout
The panel shows two views side by side:
- Left: the scan (real space). An image of the whole scan, one pixel per scan position. By default this is the Sum image. The selected scan position is marked on it.
- Right: the diffraction pattern. The pattern recorded at the selected scan position, or the mean over an area around it. The selected virtual detector is drawn over it.
All settings are in the Selection tab when the panel is selected, in three sections: Scan, Diffraction and Detectors. The panel header also has a detector picker: choose a detector to show its image on the left, or Overview to go back to the sum image.
Navigating the scan
| Action | Result |
|---|---|
| Click on the scan image | Select that scan position; the pattern on the right updates |
| Arrow keys (after clicking in the panel) | Step the scan position one position left, right, up or down |
| Drag inside the averaging area | Move the area |
| Drag the averaging area’s corner handle | Resize the area |
| Page Up / Page Down (after clicking in the panel) | In a series of scans, show the previous or next scan |
You can also type the position in Position (x, y) under Scan in the Selection tab.
When the scan is on the timeline, the scan position and the timeline cursor follow each other: picking a position moves the cursor to the moment that pattern was recorded, and scrubbing the timeline walks through the scan.
Pan and zoom
Both views have the Image Viewer’s gestures:
| Action | Result |
|---|---|
| Scroll wheel | Zoom in or out at the pointer |
| Drag | Pan |
| Shift + drag | Zoom to the selected rectangle |
| Double-click | Fit the image to the view |
| Hover toolbar | Zoom In, Zoom Out, Zoom to Fit |
On the diffraction side, a drag that starts on the selected detector moves or resizes the detector instead of panning.
Scan settings
| Setting | Description |
|---|---|
| Size | The scan size in positions (and the number of scans in a series) |
| Scan | In a series: which scan is shown |
| Pixel size | The size of one scan step, with its unit (px, nm, µm, Å). See Calibration. |
| Image | Which image of the scan is shown on the left: Sum, CoM x, CoM y, CoM magnitude, or the images of any applied detector, named after it (for example BF: Intensity, ADF: CoM x, or Detector 3: Segments for a segmented detector) |
| Filter | A Fourier filter on the image shown: Off, Low-pass, High-pass or Band-pass, with a Lower cutoff and Upper cutoff in spatial frequency (1/px, or 1/nm when the scan is calibrated). See Fourier filter. |
| Color Scale | The colour map of the scan image. For a segmented detector’s Segments image, the colouring of the segments: Colour wheel, Soft wheel, Warm to cool or Primaries. |
| Brightness, Contrast, Gamma | Display adjustments, as in the Image Viewer |
| Position | The selected scan position, x and y |
Add as separate signal to workspace keeps the image shown on the left as a signal of its own, nested under the scan in the Workspace. With the filter on, it keeps both the image and its filtered version. A segmented detector’s Segments colour image is drawn from its segment counts and cannot be kept; keep its DPC or iCoM images instead.
Diffraction settings
| Setting | Description |
|---|---|
| View | Show or Hide the diffraction side |
| Pattern | The pattern size in pixels |
| Pixel size | The angle or reciprocal length one pattern pixel spans (px, mrad, 1/nm, 1/Å). See Calibration. |
| Color Scale | The colour map of the pattern |
| Brightness, Contrast, Gamma | Display adjustments |
| Intensity | Log or Linear intensity scale. Log brings out the weak dark-field signal next to the bright central disk. |
| Average over | The pattern shown is the mean over this many scan positions across (x) and down (y), around the selected position. 1 × 1 shows the single pattern. You can also drag the area’s corner on the scan image. |
Add as separate signal to workspace keeps the pattern shown (the single pattern or the averaged one) as a signal in the Workspace.
Calibration
Many 4D-STEM files (Merlin, K2, raw) carry no calibration. Give each side a Pixel size: the scan step from the microscope’s pixel size, and the pattern pixel from the camera length. Leaving the unit on px keeps that side uncalibrated. The calibration is saved with the scan, and the scale bars, the status-bar readout, exports and every computed image use it. Detector radii are then also shown In units of the pattern calibration.
Fourier filter
The Filter under Scan Fourier-filters the image shown on the left:
- Low-pass smooths the image (keeps frequencies below the Upper cutoff).
- High-pass removes the slow background (keeps frequencies above the Lower cutoff).
- Band-pass keeps a ring of spatial frequencies between the two.
0.5 1/px is the finest detail an image holds. The filter is not applied to a Segments colour image.
The Fourier filter is one of the native image tools, included with Pro and Lab, like 4D-STEM itself. See Plans.
Exporting images
Right-click either view for Copy Image (to the clipboard) or Save Image… (a PNG file). Both capture what you can see in that view, at screen resolution, with the scale bar and, on the diffraction side, the selected detector.
Status bar readout
While the pointer is over the panel, the status bar shows the scan position and the value of the scan image under the pointer, or the detector pixel and its value over the diffraction pattern.