EMsoft-org / EMsoft

Public EMsoft repository
Other
61 stars 94 forks source link

Missing matlab script for generating binary format files for Dictionary Indexing #158

Closed zvy5212 closed 2 years ago

zvy5212 commented 2 years ago

Hi,

I'm learning to use EMsoft these days and I figure out that it's very interesting and powerful. Thank you for developing it!

For Dictionary Indexing, unfortunately, I'm using Aztec so I need to generate the binary format input myself. In the paper (https://doi.org/10.1007/s40192-019-00137-4), it is mentioned that there is a Matlab script for generating the binary files in the supplementary materials. However, I cannot find it there.

Can you help me with finding the Matlab script?

Thanks!

hakonanes commented 2 years ago

Hi @zvy5212,

by "using AZtec", you mean writing patterns as .tiff files? If you can export your patterns to binary .ebsp files, EMsoft's DI programs can directly read them without using the mentioned MATLAB script. I cannot seem to find the script in the source code, but Marc included it in https://github.com/EMsoft-org/EMsoft/issues/111#issuecomment-630722450. I hope you get it to work.

zvy5212 commented 2 years ago

Thanks a lot! I don't know how to explore patterns as a .ebsp file. But the Matlab code does help me generate the binary file I want. I appreciate it a lot!

hakonanes commented 2 years ago

Glad you could generate the binary file!

explore patterns as a .ebsp file

We support reading of uncompressed .ebsp files in the Python package kikuchipy. It's based on HyperSpy, so patterns can be inspected by navigating in a 2D map.