In previous chapters we have discussed how to select EBSD data by properties. In this chapter we discus the ordering of EBSD pixels within MTEX. Lets start by importing some sample data
and restricting it to very small rectangular subset
In the above plot each square corresponds to one entry in the variable ebsd which as an index from 1 to 98. Let us visualize this index
We may easily select specific pixels by specifying their indices
Whether lines or columns run first is not related to MTEX but inherits from the ordering of the imported EBSD data. Since, we have restricted our large EBSD map to the small subset the indices of restricted data does not coincide with the indices of the imported data anymore. However, the original indices are still stored in ebsd.id. Lets visualize those
In order to select EBSD data according to their original id use the option 'id', i.e.,
Square Grids
In the cases of gridded data it is often useful to convert them into a matrix form.
This allows to select EBSD data simply by their coordinates within the grid, e.g., by
Note that the gridify command changes the order of measurements. They are now sorted such that rows runs first and columns second, as this is the default convention how Matlab indexes matrices.
Hexagonal Grid
The command gridify may also be applied to EBSD data measured on a hexagonal grid.
This rearranges the measurements in a matrix form which can be indexed similarly as in the square case.
Lets visualize the matrix coordinates for the hexagonal grid
Cube Coordinates
In hexagonal grids it is sometimes advantageous to use three digit cube coordinates to index the cell. This can be done using the commands hex2cube and cube2hex. Much more details on indexing hex grids can be found at here.