file_reader#
- kikuchipy.io.plugins.edax_h5ebsd.file_reader(filename: str | Path, scan_group_names: str | list[str] | None = None, lazy: bool = False, **kwargs) list[dict][source]#
Read electron backscatter diffraction patterns, a crystal map, and an EBSD detector from an EDAX h5ebsd file [Jackson et al., 2014].
Not meant to be used directly; use
load().- Parameters:
- filename
Full file path of the HDF5 file.
- scan_group_names
Name or a list of names of HDF5 top group(s) containing the scan(s) to return. If not given (default), the first scan in the file is returned.
- lazy
Open the data lazily without actually reading the data from disk until required. Allows opening arbitrary sized datasets. Default is False.
- **kwargs
Keyword arguments passed to
h5py.File.
- Returns:
scan_dict_listList of one or more dictionaries with the keys “axes”, “data”, “metadata”, “original_metadata”, “detector”, and “xmap”. This dictionary can be passed as keyword arguments to create an
EBSDsignal.
Notes
The detector azimuthal angle is the negative of the “Camera Azimuthal Angle” in the file. This gives the same detector-sample geometry as with kikuchipy < 0.12.0. Whether this geometry is correct has not been verified.