Skip to content

HDF5 from Bruker #329

Answered by hakonanes
Fred-Ad asked this question in Q&A
Apr 14, 2021 · 8 comments · 11 replies
Discussion options

You must be logged in to vote

Finally, I figured out what the "Scan 1/EBSD/SEM/IX" and "Scan 1/EBSD/SEM/IY" arrays show, i.e. the (flattened) indices of patterns in the final 2D map into the 1D array of patterns in "Scan 1/EBSD/Data/RawPatterns". With this fix, I could now do:

>>> import matplotlib.pyplot as plt
>>> import kikuchipy as kp
>>> s = kp.load("/home/hakon/phd/data/epTest-coeur.hdf5")
>>> static_bg = s.mean(axis=(0, 1))  # Average all patterns to get a background
>>> static_bg.change_dtype(s.data.dtype)  # Revert to 8-bit unsigned integer
>>> s.remove_static_background(static_bg=static_bg.data)
>>> s.remove_dynamic_background()
>>> iq = s.get_image_quality()
>>> adp = s.get_average_neighbour_dot_product_map()

Replies: 8 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Fred-Ad
Comment options

@hakonanes
Comment options

Comment options

You must be logged in to vote
5 replies
@hakonanes
Comment options

@Fred-Ad
Comment options

@hakonanes
Comment options

@Fred-Ad
Comment options

@hakonanes
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Fred-Ad
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Fred-Ad
Comment options

@hakonanes
Comment options

Comment options

You must be logged in to vote
1 reply
@hakonanes
Comment options

Comment options

You must be logged in to vote
1 reply
@hakonanes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants