Text output examples
Python - Gatan
Basic text output examples in DigitalMicrograph. By default, the output stream is sent to the Results window.
Simple dialogs
Python - Gatan
The input command presents a simple dialog and returns the entered string. Some other simple prompted dialogs are provided by the plugin.
Process 2D in-situ datasets
Python - Gatan
Process in-situ camera or in-situ STEM imaging datasets in DigitalMicrograph. The script handles several in-situ file formats used by DigitalMicrograph and produces results that are automatically synced with the original data when played back in DigitalMicrograph. The script supports custom processing of each frame by modifying a frame processing function.
Output version info
Python - Gatan
Output basic information of the used Python environment.
Output DigitalMicrograph Python help
Python - Gatan
Output Python commands of DigitalMicrograph. Output command-specific help.
Microscope access
Python - Gatan
Example script basic microscope access. For further info please also refer to the DM-scripting documentation on microscope access.
LiveView radial FFT profile
Python - Gatan
Compute radial-max profiles over time from the FFT of the LiveView image in DigitalMicrograph.
LiveView linear profile
Python - Gatan
Compute ROI-based profiles over time from the LiveView image in DigitalMicrograph.
Live thresholding with plots
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing a binary display. The live image is thresholded, and several morphological operations are applied to create a binary display. Then the largest contiguous bright region is found and circled. A plot of the position of the center of mass of that bright region is also updated live.