Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio |PyJEM| Search

 

Function: Create a UEID Taggroup
Function
Creates a Unique Experimental ID (UEID) taggroup for linking files.
Version

version:20200820, v1.0

Author
D. R. G. Mitchell
Acknowledgements
Gatan's demonstration code in the online help.
Comments

Files which are created at the same time, eg a spectrum image and its associated dark field image, need to be linked so that in subsequent processing it is clear which files belong together. This is done using the Unique Experimental ID (UEID) taggroup. In principal any taggroup structure could be used. However, Gatan has made it easy with this particular format. There are a couple of script commands specifically designed for getting or setting the UEID taggroup information, which makes them easy to use and avoids the need to traverse taggroups to get to them.

This function creates a UEID taggroup which has the form 'Meta Data:Experimental keywords:[0]:name_date_time'. The [0], [1] . .etc is a hierarchical structure - since an image/spectrum may have more than one UEID. The script then uses the Gatan-supplied functions to apply the taggroup to an image and then to source that information. This functionality is useful in any custom acquisition or processing routines which create groups of images or spectra which subsequently may need to be linked.

System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
-
Supported
Yes
Included Files
Main script file.
Source Code

See attached script file.