'X||a' and 'Y||a'), see here: https://mtex-toolbox.github.io/CrystalReferenceSystem.htmlfname1 = 'C:\path\to\EDAX\data.ang';
CSang = {...
'notIndexed',...
crystalSymmetry('6/mmm', [3 3 4.7], 'X||a', 'Y||b*', 'Z||c*', 'mineral', 'Ti', 'color', [0.53 0.81 0.98])};
fname2 = 'C:\path\to\Oxford\data.ctf';
CSctf = {...
'notIndexed',...
crystalSymmetry('6/mmm', [3 3 4.7], 'X||a*', 'Y||b', 'Z||c*', 'mineral', 'Ti', 'color', [0.53 0.81 0.98])};
setMTEXpref('xAxisDirection','east');
setMTEXpref('zAxisDirection','intoPlane')
data{1} = EBSD.load(fname1,CSang,'interface','ang','convertEuler2SpatialReferenceFrame', 'setting 2');
data{2} = EBSD.load(fname2,CSctf,'interface','ctf','convertEuler2SpatialReferenceFrame');roi = [0 0 50 50];
data{1} = data{1}(inpolygon(data{1},roi));
data{2} = data{2}(inpolygon(data{2},roi));
e1 = mean(data{1}('Ti').orientations)
e2 = mean(data{2}('Ti').orientations)
mis = angle(e1,e2)/degreee1 = orientation (show methods, plot)
size: 1 x 1
crystal symmetry : Ti (6/mmm, X||a, Y||b*, Z||c)
specimen symmetry: 1
Bunge Euler angles in degree
phi1 Phi phi2 Inv.
110.516 34.1986 255.299 0
e2 = orientation (show methods, plot)
size: 1 x 1
crystal symmetry : Ti (6/mmm, X||a*, Y||b, Z||c)
specimen symmetry: 1
Bunge Euler angles in degree
phi1 Phi phi2 Inv.
291.336 34.3524 48.3993 0
The involved symmetries have different reference systems
1: Ti (6/mmm, X||a*, Y||b, Z||c)
2: Ti (6/mmm, X||a, Y||b*, Z||c)
I'm going to transform the data from the first one to the second one
mis =
68.6561rotate(data{2}('Ti'), 180*degree, 'keepXY')'convertEuler2SpatialReferenceFrame' in the ctf interface does exactly do this rotation to correct the misalignement of the different coordinate systems usually present on many Oxford systems to just have one single x,y coordinate system in Mtex.Can you comment also which software you used to export the ctf? There used to be some menu on Aztec (I guess it might still be there) to specify the reference frames for exporting ctf. However, apparently for early software version they did basically nothing. Maybe now it does and you picked the correct setup or your system is set up in a way that it does not need the 180 degree rotation?Cheers,RüdigerAcqE1 0.0000
AcqE2 0.0000
AcqE3 0.0000I did notice that if I changed the CS0 setting in the AZtec project and re-exported the same data, the only thing that changed in the resulting CTF was the header AcqE values. The Euler angles for the crystal orientations remained the same. I thought maybe you had to change the setting and then actually collect new data to get it to properly use the new reference system, but it might just be ignoring it like you say it used to. Who knows. I'll likely just keep using this setting for the foreseeable future, since I know it works now.
Cheers,
Greg