Skip to content

Gatan DigitalMicrograph (DM3/DM4) reader

Compare
Choose a tag to compare
@ercius ercius released this 03 Jan 21:54

This release adds a new class called dm.py which reads all tags and data in Gatan's DigitalMicrograph (DM) format.

  • Most tags are read properly
  • 1D, 2D, 3D and 4D data sets can be loaded as Numpy arrays
  • Automatically logs pixel size, unit names and other important tags
  • Capability to manually open a file, parse tags and read data sets by separate functions
  • Includes a handy dmReader() function to simplify all steps of reading data from a file
  • Includes a flag (on_memory) to minimize disk access for distributed file systems by parsing the file entirely in memory (thanks @gonzalorodrigo!)

Some fixes to ringdiff and other fixes can be seen in the commits.