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.
Display listener (show z-stack position)
DigitalMicrograph - Gatan
Creates an annotation for the currently displayed wavelength in a spectrum image. Ideal for embedding current wavelength in images and videos.
Display as HSB
DigitalMicrograph - Gatan
Display complex image as color encoded HSB image (phase = color, modulus = brightness).