TEMDM

TEMDM

Open source

Collection of open-source DigitalMicrograph (DM) plugins and Python tools for acquisition, visualization and processing of TEM/STEM and EELS data.

STEMCOR plugin for DigitalMicrograph

Corrects for linear drift and non-linear instabilities in two STEM images of the same area acquired with alternating the fast scan direction. Full version combines the previously released basic and advanced version. The open-source code is attached.

version 1.83 – last updated 17.01.2026
DOC: PDF description
Download· 0.6 MB

Acquire STEM Rotated Series

DigitalMicrograph plugin facilitating acquisition of STEM images with periodic alternation of the fast scan direction.

Thanks to: Dirk Utess (GloFo), Sebastian Sturm (LMU)

version 1.1 – last updated 17.01.2026
DOC: PDF description
Download· 0.6 MB

Automatic Truncation of PCA components

Python scripts for automatic separation of PCA components into meaningful and noisy ones. The method is described in Potapov P. and Lubk A., Advanced Structural and Chemical Imaging 5, 4 (2019). The implementation is augmented with a Bayesian estimation of the most probable component cut.

version 1.0 – last updated 19.06.2025
Download· 0.1 MB

Import/Export DigitalMicrograph images

Python scripts to convert DigitalMicrograph images into NumPy arrays and back. They provide the capability to read .dm3 and .dm4 files as NumPy arrays and leverage various Python libraries for further processing. The processed data can be written back into .dm3/.dm4 format. Developed with kind help from Bernhard Schaffer (Gatan). The package also includes an interface with HyperSpy for enhanced functionality.

version 1.3 – last updated 2.03.2026
Download· 0.8 MB

SetProfile

The SetProfile DM plugin is designed to handle multi-compositional line profiles across elemental maps. It streamlines the management of line-profile settings to obtain optimal visualization of multi-compositional variations and enables quick adjustment of profile parameters to enhance the appearance of the data.

version 1.0 – last updated 11.08.2021
DOC: PDF description
Download· 0.1 MB

Stereo

The Stereo DM plugin facilitates creation of a stereo pair from two TEM images captured at different tilts. The documentation explains how to perceive a 3D object from such a stereo pair without any additional equipment, using simple viewing techniques. Several example images are included.

version 1.1 – last updated 06.08.2021
DOC: PDF description
Download· 10 MB
Short communication

TrackDrift

The TrackDrift DM plugin monitors the drift of a TEM sample by continuously observing a live, dynamically updated “search” image generated by DigitalMicrograph View or Digiscan tools. It measures and displays the magnitude and direction of the ongoing drift and maintains a temporal drift graph in a separate display for easy tracking and analysis over time.

version 1.1 – last updated 06.08.2021
DOC: PDF description
Download· 0.4 MB

Flattener

Images frequently show intensity gradients caused by uneven illumination or specimen thickness variations. The Flattener DM plugin provides a straightforward solution: with a user-friendly interface, optimal flattening results can be achieved in just a few seconds, efficiently correcting gradients and improving overall image quality.

version 1.1 – last updated 06.08.2021
DOC: PDF description
Download· 0.4 MB

Scan2D

This DM plugin emulates the Digiscan spectrum-imaging tool, with the distinction that it generates 2D spectra instead of 1D. It allows acquisition of a spectrum-image of a q–E EELS map (momentum transfer on the vertical axis, energy on the horizontal axis), providing richer information for analysis.

version 1.1 – last updated 06.08.2021
DOC: PDF description
Download· 0.5 MB

LabelLengths

This DM plugin, once outdated, has been significantly improved and redesigned. It supports measurement of dimensions and angles in DigitalMicrograph images and provides easily adjustable, manipulable labels that can be arranged for optimal image appearance, offering a more efficient workflow for annotation.

version 4.1 – last updated 06.08.2021
DOC: PDF description
Download· 0.4 MB

CumulativeEELS

This DM plugin enables multi-run cumulative acquisition of EELS, including simultaneous low-loss and core-loss acquisition, similar in spirit to Gatan dual-EELS.

version 3.4 – last updated 09/02/2023
DOC: PDF description
Download· 0.6 MB

ExtendedFrames

This DM scripts library comprises a collection of classes designed to extend the functionality of standard DigitalMicrograph dialog and image frames, providing additional capabilities for building more advanced user interfaces.

version 3.4 – last updated 17.10.2016
DOC: PDF description
Download· 0.5 MB

VirtualTEM

This DM plugin emulates a simplified TEM user interface and includes essential scripting commands for communication between DigitalMicrograph and the TEM. It provides a convenient and efficient way to control TEM operations from within the DigitalMicrograph environment.

version 3.5 – last updated 06/11/2023
DOC: PDF description
Download· 0.5 MB

BatchRecording

This DM plugin streamlines acquisition, display and saving of large batches of TEM images. It is designed to work together with VirtualTEM in offline systems, enabling efficient handling of extensive image datasets.

version 2.0 – last updated 16/08/2016
DOC: PDF description
Download· 1 MB

ClickMover

This DM plugin enables interactive field-of-view manipulation in the live image by simply clicking with the mouse. It provides a user-friendly way to navigate and adjust the field of view in real time.

version 1.3 – last updated 02.11.2017
DOC: PDF description
Download· 1 MB

Timer

This DM plugin is a simple timer for counting time intervals associated with various tasks, such as nitrogen refills.

version 2.1 – last updated 25.10.2017
DOC: PDF description
Download· 0.5 MB

Debugger

This DM plugin assists in locating bugs in DigitalMicrograph scripts by inserting print markers. Strategically placed markers print relevant information during execution, helping identify and isolate issues and improving script reliability.

version 2.1 – last updated 19.08.2016
DOC: PDF description
Download

ImportImage

This DM script provides functionality to import TIA SER images and TIFF SEM images from systems such as FEI, Zeiss and AnalySiS into DigitalMicrograph, streamlining integration of data from multiple platforms.

version 2.1 – last updated 17.10.2025
DOC: PDF description
Download· 0.4 MB

SetFolder

This DM script tracks recently opened folders in DigitalMicrograph and provides a convenient way to navigate among them quickly.

version 1.0 – last updated 09.02.2019
DOC: PDF description
Download· 0.5 MB