
Python Script Resources
Access a curated collection of Python scripts designed to enhance data processing, automation, and analysis in DigitalMicrograph.
What are Python scripts?
Python scripting offers a flexible, open-source approach to working with Gatan data and instruments. Perfect for users who want to integrate Gatan tools into broader scientific workflows.
- Leverage powerful Python libraries (NumPy, SciPy, Matplotlib, etc.)
- Ideal for advanced data analysis and machine learning applications
- Compatible with DigitalMicrograph software
Getting started
Installation guide
Learn how to set up Python scripting in DigitalMicrograph
How to run a script
Step-by-step instructions for executing Python scripts in DigitalMicrograph, including thread management and troubleshooting
Additional Python packages
Discover additional Python packages compatible with DigitalMicrograph to expand your data analysis and automation capabilities
Python images and NumPy arrays
Learn how to work with images and NumPy arrays in DigitalMicrograph to enable advanced data processing and visualization
Complete lists of all DigitalMicrograph-specific python commands that can be used in the embedded python interpreter in DigitalMicrograph can be found in the built-in DigitalMicrograph help. This can be accessed from the Help / Search… menu command in DigitalMicrograph or as a PDF in the Gatan documentation folder on a PC where DigitalMicrograph has been installed ( C:\ProgramData\Gatan\Documentation\PythonReference.pdf ).
Share your Python script
Contribute to the Gatan community by submitting your Python script. Help fellow researchers automate workflows, solve challenges, and advance electron microscopy.
Please include a brief description, compatibility details, and any usage notes to ensure your script is easy to find and apply. All submissions are reviewed for clarity and scientific integrity before being added to the library.
Resources
*.dm5 Documentation
Find comprehensive documentation, user guides, and technical resources for DigitalMicrograph 5 files
DigitalMicrograph Scripts
Access ready-to-use DigitalMicrograph scripts for acquisition, processing, and visualization
EM Academy
Gain real-world experience through self-paced courses to elevate your electron microscopy research
EELS.info
Discover the EELS technique family—from step-by-step experiment guides to an interactive Atlas with downloadable spectra
What is CL?
Enhance your cathodoluminescence journey—from experiment guides to deeper application insights