Import an image from a text file
DigitalMicrograph - Gatan
Command example script showing how the ImageImportTextData() command is to be used.
HRTEM maximum spot mapping
Python - Gatan
Produce a colorful map of crystalline regions from a high-resolution image in DigitalMicrograph using localized FFT analysis. The script scans with configurable spacing and FFT size, masks low frequencies, and maps the angle of the maximum lattice-spot to color. It also displays the intermediate 4D-STEM-like data cube and draws a color-wheel legend. While the result looks like an orientation map, it does not perform proper orientation mapping.
Having a script wait for a file to appear
DigitalMicrograph - Gatan
Example script which holds its execution until a certain file is found at a given location. Checking is performed on the main thread at given intervals.
Get front two images
Python - Gatan
Demonstration of accessing the two frontmost images in GMS.
Focal series
DigitalMicrograph - Gatan
Simulate a focal series of theoretical diffractograms.
Find image by ID
Python - Gatan
Example use of FindImage by ID. This script gets the chronologically last image. It works because image IDs are incremented whenever new memory is allocated.
Extracting a spectrum
Python - Gatan
Access a single spectrum from a 3D STEM SI in DigitalMicrograph. This script assumes a 3D image is frontmost on the workspace.