-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crystal Shape and EBSD data don't align when rotating the EBSD data or changing plotting conventions #1952
Comments
Hi Adam, there are a couple of mistakes in your script.
cSGrains_p2 = grains(isBig_p2).meanOrientation * cS * 0.7 * sqrt(grains(isBig_p2).area); whereas it should be cSGrains_p2 = grains_p2(isBig_p2).meanOrientation * cS * 0.7 * sqrt(grains(isBig_p2).area);
Ralf |
Ok, after staring at this example and my larger data set, I think I see the issue for the crystal shape comment (haven't tried to sort out the zAxisDirection option in v6.0 yet). I think it comes down to the 'keepXY' command when applying a rotation to the EBSD data, and that there's conflicting coordinate systems in the IPF Colormaps when trying to superimpose the crystal shapes after rotating with keepXY... For some additional context, the EBSD data I have (not shown) has the following sample orientations: EBSD_X || AM_X Where "EBSD_" is analogous to the A_1, A_2, A_3 reference frame Reference Frame Alignment page, and the "AM_" reference frame is the microstructure relevant reference frame I'm trying to display my data in (similar to RD, TD, ND in rolled sheet). A -90° Rotation about X puts the EBSD and AM coordinate systems in alignment, so that's why I'd been applying the that rotation, and I wanted to keep the map coordinates so I used the 'keepXY' flag. Here's the IPF colormaps for X, Y, and Z respectively: And the superimposed crystal shapes on the Z IPF colormap: Then I've applied the -90° rotation, and as expected the IPF colormaps for Y and Z switch (not shown individually). But here's the Z IPF colormap with superimposed crystal shapes on the rotated data: On first glance, all looks like one would expect. The crystals rotate between the two plots, and the colors swap between Y and Z. But if look at it with the view relative to the grain shapes, they have have not moved (since I choose keepXY). To me, that implies that the crystal shape should not move between the plots if the 'keepXY' option was applied. I think what I'd want here is an option when showing the crystal shape to keepXY as well... PS I've talked to a few other people about a similar issues in rotations of sample coordinate systems. The Reference Frame Alignment page is a good starting point, but I think there are some additional subtleties. If you want I can see if I could create a good example to help folks with this? Also, I cleaned up the example script below if it's useful:
|
What do you want to do?
I'd like to superimpose the crystal shapes on an IPF colormap, but I need to rotate the data (keepXY option) so the pole figures and other orientation data is preserved. Right now it looks like the crystal shapes use the plotting convention orientation, not any of the rotations applied to the EBSD data.
What data do you have?
I've tried this with my own data, but the Crystal Shapes demo seems to show the same thing, so I included that below.
What code do you use?
Please provide minimalist code with code in the following form
What result do you get
See inline with the different figure plots. Fig 1 - original data; Fig2 - rotating the data doesn't change the crystal shape. Figs3 and 4 changed the orientation conventions, which changed the crystal shape, but also the rest of the plot (flipped vertically). Manually flipping the image (flip vertically) did not recover the expected orientations either.
What result do you expect
What MTEX version do you use?
5.9.0
The text was updated successfully, but these errors were encountered: