GOS in MTEX #57
-
Beta Was this translation helpful? Give feedback.
Answered by
AzdiarGazder
Nov 7, 2023
Replies: 1 comment 6 replies
-
Hi @wuwuhd From your screenshot, I believe there was an error with some of your commands. Hope this helps. Warm regards, % clear variables
clc; clear all; clear hidden; close all;
% start Mtex
startup_mtex;
% define Mtex plotting convention as X = right, Y = up
setMTEXpref('xAxisDirection','east');
setMTEXpref('zAxisDirection','outOfPlane');
setMTEXpref('FontSize', 14);
% Import the dataset
ebsd = EBSD.load('Duplex.ctf','interface','ctf',...
'convertEuler2SpatialReferenceFrame');
ebsd = ebsd('indexed');
%% Calculate the grains
% identify grains
[grains,ebsd.grainId,ebsd.mis2mean] = calcGrains(ebsd,'angle',5*degree);
% remove small clusters
ebsd(grains(grains.grainSize <= 5)) = [];
% re-calculate grains
[grains,ebsd.grainId,ebsd.mis2mean] = calcGrains(ebsd,'angle',5*degree);
% smooth grains
grains = smooth(grains,5);
% compute GRODs
mis2mean = calcGROD(ebsd, grains);
% take the avarage of the misorientation angles for each grain
GOS = ebsd.grainMean(mis2mean.angle);
% plot it
plot(grains, GOS ./ degree);
mtexColorbar('title','GOS in degree'); |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
wuwuhd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @wuwuhd
From your screenshot, I believe there was an error with some of your commands.
Here is some script that works on a dual phase ebsd map.
Hope this helps.
Lastly, and importantly, if this explanation resolves your issue, please mark this message as your answer.
Warm regards,
Azdi