file_reader#
- kikuchipy.io.plugins.oxford_h5ebsd.file_reader(filename: str | Path, scan_group_names: str | list[str] | None = None, lazy: bool = False, processed: bool = True, **kwargs) list[dict][source]#
Read electron backscatter diffraction patterns, a crystal map, and an EBSD detector from an Oxford Instruments h5ebsd (H5OINA) 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.
- processed
Whether to read processed patterns. Default is True. If False, try to read unprocessed patterns if available.
- **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.
- Raises:
KeyErrorIf processed is False and unprocessed patterns are not available.
Notes
The detector tilt, azimuthal, and twist angles are derived from the “Detector Orientation Euler” angles in the file. These are effective values compensated by Oxford Instruments’ calibration, not absolute values. If the sample “Tilt Axis” in the file is not 0, only the detector tilt is read.