A collection of scripts and convenience functions I use for processing and analysing orientation data in MTEX.
Write output data from an AstroEBSD .mat-file to a format readable by MTEX.
Return an @EBSD object with the euclidian distance in pixels of each measurement to a grain boundary as a property. Whether the measurement is a boundary or not is also included as a property to the @EBSD object. Edge boundaries are excluded for the distance calculation. If a misorientation signifying a high angle boundary threshold is passed, the same is also done for these boundaries.
Create a new TSL .ang file from an @EBSD object by copying the original .ang file header and exporting the object's data to the file.
Check quality of indexing of Kikuchi diffraction patterns.
Plot orientation maps and/or inverse pole figure density plots from EBSD data and write them to file.
Calculate the fraction of each grain's boundary that has a given high angle misorientation to its surrounding grains.
Determine if a grain is recrystallised or not based upon three criteria:
- A minimum equivalent circular diameter.
- A maximum grain orientation spread.
- A minimum fraction of high angle grain boundary.
Returns three new @grain2d
objects, all containing only indexed grains:
- All grains with a boolean recrystallisation property.
- All subgrains.
- All recrystallised grains.
Can also plot a map of grains with grain colour corresponding to the RX
property.
The script assumes that the grains object has grains.ECD
and grains.Xhab
properties, and if not assigns these to the grains object.
Example usage:
[grains, sub, rx] = ebsd_fraction_recrystallised(grains, 'ebsd', ebsd,...
'overlay_metric', ebsd.fit, 'overlay_cmap', 2);
A collection of functions writing data (for example grain data) to .csv files.
Calculate an indexing success rate (ISR) value by comparing a given EBSD scan to a reference scan. An orientation in the comparison scan is compared against any of the orientations in the kernel of neighbouring points in the reference scan. See Wright, Stuart I., Nowell, Matthew M., Lindeman, Scott P., Camus, Patrick P., De Graef, Marc, Jackson, Michael A.: Introduction and comparison of new EBSD post-processing methodologies , Ultramicroscopy 159(P1), Elsevier, 81–94, 2015 for details.
Read orientation data from dictionary indexing results in the EMsoft HDF5 format into an MTEX @EBSD object.
Write orientation data from a SPED data set to a text file in the ANG format used by NanoMegas' ASTAR and EDAX TSL.