Importing 4D-STEM Dataset in DM4 Format
The .dm4 file format is a proprietary file format used by Gatan’s Digital Micrograph software, which is commonly employed for storing and analyzing microscopy data, including 4D-STEM datasets. Unlike the EMPAD format, which requires both an XML and a RAW file, the .dm4 format encapsulates all necessary data within a single file with the extension .dm4.
Warning
Due to the proprietary nature of the .dm4 file format, support for .dm4 files is incomplete. Users should be cautious with automatically read metadata.
To import a 4D-STEM dataset stored in the .dm4 format, follow these steps:
Open an HDF5 File: Ensure that you have an HDF5 file open in the main interface.
Access the Import Dialog: In the main interface’s menu bar, navigate to the
Editmenu and locate theImport 4D-STEM datasetbutton. Click it to open the import dialog. Alternatively, you can right-click on any group in the file panel on the left side of the main interface and selectImport 4D-STEM datasetfrom the context menu.Select the File Type: In the pop-up import dialog, choose
Digital Micrograph (.dm4)as the file type in theImport File Typefield.Browse for the .dm4 File: Click the
Browsebutton to select the .dm4 file you wish to import.Specify the Import Location: In the
Import Dataset to Locationfield, browse and select the group where you want to import the dataset. You can also specify the name of the dataset in theNamefield.Complete the Import: Once all fields are correctly filled, click the
Importbutton to load the dataset into the HDF5 file.
Note
The dataset being imported in the .dm4 format should be a 4D-STEM dataset. Importing 2D images is not supported in this context.