magali.read_qdm_harvard

Contents

magali.read_qdm_harvard#

magali.read_qdm_harvard(path)[source]#

Load QDM microscopy data in the Harvard group format.

This function loads quantum diamond microscope (QDM) data stored in the Matlab binary format used by Roger Fu’s research group at Harvard. The file contains magnetic field measurements and metadata, including grid spacing information.

Parameters:

path (str or pathlib.Path) – Path to the input Matlab (.mat) file.

Returns:

data.bz (xarray.DataArray) – A 2D array representing the magnetic field component (Bz) on a regular grid. The coordinates are in micrometers (µm), and the magnetic field values are in nanotesla (nT).