Problem in KAM (kernel average misorientation) calculation?

213 views
Skip to first unread message

MTEXNewbie

unread,
Mar 23, 2019, 8:00:51 AM3/23/19
to MTEX
I have calculated KAM using the below code, is the threshold command working here? I tried the example code but the line with threshold gives error.

%% Plot Kernel average misorientation (KAM)
figure
% calculate KAM by ignoring misorientation angles > threshold
plot(ebsd('Iron fcc'),ebsd('Iron fcc').KAM./degree,'threshold',5*degree);
mtexColorbar
setColorRange([0 5]);
hold on
plot(grains.boundary,'linewidth',0.5);
hold off


Ralf Hielscher

unread,
Mar 23, 2019, 8:33:11 AM3/23/19
to mtex...@googlegroups.com
As usual it would be nice to have the error message :)

Ralf.

********************************************************************
Ralf Hielscher                   Tel: +371-531-38556
Fakultät für Mathematik               +371-531-22200 (Sekr.)
Technische Universität Chemnitz  Fax: +371-531-22109
Reichenhainer Str. 39            E-mail: ralf.hi...@mathematik.tu-chemnitz.de
D-09126 Chemnitz                 http://www.tu-chemnitz.de/~rahi
********************************************************************


--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.

Rüdiger Kilian

unread,
Mar 23, 2019, 9:51:05 AM3/23/19
to mtex...@googlegroups.com
Hi,
the 'threshold',... option/parameter belong to KAM(), not plot().
Cheers,
Rüdiger
________________________________________
From: mtex...@googlegroups.com <mtex...@googlegroups.com> on behalf of MTEXNewbie <rashed...@gmail.com>
Sent: Saturday, March 23, 2019 1:00:51 PM
To: MTEX
Subject: {MTEX} Problem in KAM (kernel average misorientation) calculation?

I have calculated KAM using the below code, is the threshold command working here? I tried the example code<https://mtex-toolbox.github.io/files/doc/EBSD.KAM.html> but the line with threshold gives error.

%% Plot Kernel average misorientation (KAM)
figure
% calculate KAM by ignoring misorientation angles > threshold
plot(ebsd('Iron fcc'),ebsd('Iron fcc').KAM./degree,'threshold',5*degree);
mtexColorbar
setColorRange([0 5]);
hold on
plot(grains.boundary,'linewidth',0.5);
hold off



--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+u...@googlegroups.com<mailto:mtexmail+u...@googlegroups.com>.

MTEXNewbie

unread,
Mar 31, 2019, 8:34:02 AM3/31/19
to MTEX
Hi Rüdiger,

I was able to make it work, thanks for the tip. The previous error was "ebsd variable exceeding indexing..." which was not actually related to KAM calculation, rather ebsd data processing.

I was wondering if there is a way to output a histogram plot (KAM values in x-axis, and boundary fractions in y-axis for 0-5 degree misorientation)?


Rüdiger Kilian

unread,
Mar 31, 2019, 3:48:31 PM3/31/19
to mtex...@googlegroups.com
Hi,
no, histograms do not work that way but if you have the grain averaged KAM and if you have the grain boundary fraction, you can use a scatter plot.
Cheers,
Rüdiger
________________________________________
From: mtex...@googlegroups.com <mtex...@googlegroups.com> on behalf of MTEXNewbie <rashed...@gmail.com>
Sent: Sunday, March 31, 2019 2:34:02 PM
To: MTEX
Subject: Re: {MTEX} Problem in KAM (kernel average misorientation) calculation?

Hi Rüdiger,

I was able to make it work, thanks for the tip. The previous error was "ebsd variable exceeding indexing..." which was not actually related to KAM calculation, rather ebsd data processing.

I was wondering if there is a way to output a histogram plot (KAM values in x-axis, and boundary fractions in y-axis for 0-5 degree misorientation)?



MTEXNewbie

unread,
Apr 1, 2019, 9:41:36 AM4/1/19
to MTEX
Hi Rüdiger,

no, histograms do not work that way but if you have the grain averaged KAM and if you have the grain boundary fraction, you can use a scatter plot. 

I was wondering If there is a code snippet available for the above mentioned suggestion.
Reply all
Reply to author
Forward
0 new messages