pyxem / kikuchipy

Toolbox for analysis of electron backscatter diffraction (EBSD) patterns
https://kikuchipy.org
GNU General Public License v3.0
82 stars 29 forks source link

Also read crystal map together with EBSD patterns from a Bruker HDF5 file #670

Open hakonanes opened 6 months ago

hakonanes commented 6 months ago

orix can read orientation data from a Bruker HDF5 file. We should use this reader to populate the EBSD.xmap property returned when reading EBSD data from a Bruker HDF5 file.

For safety, we can do this in a try/except.

hakonanes commented 5 months ago

This will have to wait for the next minor release, 0.11, as it requires a bit more work.

orix' Bruker reader function takes an HDF5 file path. We want to use this function before returning an EBSD signal from our Bruker HDF5 reader. The reader is implemented in a file_reader() function. In there, though, we parse the already opened HDF5 top group. orix cannot take an HDF5 top group, although that would be very convenient!