ODFs given by Fourier coefficients and discreteSample uses issue #2144
Replies: 1 comment 1 reply
-
Hi Moctar, thanks for your request. First of all the warning is constructed since the ODF which is build by MTEX has complex valued function values instead of real valued as it may be expected. This has something to do with symmetric fourier coefficients. Moreover it is not necessary for them to be real valued to assure that the ODF is real valued. I think something is going wrong by loading the data. Maybe by transfering them to MTEX syntax. Unfortunately i am not able to reconstruct your error, since i do not have your data. Kind regards and thanks again for your request. Erik Wünsche PS: You can also send me the data privately by e-mail. |
Beta Was this translation helpful? Give feedback.
-
Hi ,
Firstly, I would like to say thank you for this great toolbox that is Mtex!!
As of now, I'm working on texture analysis for hexagonal material with the VPSC code.
Due to that I was given the fourrier coefficient that will help me build the ODF with the FourierODF tool thanks to mtex.
Then extract the orientation points for VPSC.
However when I try to extract some orientation points with the tool discreteSample for VPSC, I have some issues.
Added to that, it seems that when I try to plot the pole figure I have a warning saying "the Imaginary part of complex valued SO3FunHarmonic is ignored".
For reference, here is the code lines concerned :
CODE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
cs = crystalSymmetry('6');
C = [C_0;C_1;C_2;C_3;C_4;C_5;C_6;C_8;C_9;C_10;C_11;C_12;C_13;C_14;C_15;C_16]; % Fourier coefficients (they are complex coefficient)
odf = SO3FunHarmonic(C,cs);
%odf = FourierODF(C,cs);
plotPDF(odf,[Miller(0,0,0,2,cs)],'antipodal')
mtexColorbar
ori = discreteSample(odf,3000);
OUTPUT \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Warning: Imaginary part of complex valued SO3FunHarmonic is ignored.
In the following only the real part is plotted.
Error in histcounts (line 123)
validateBinEdges(a);
Error in discretesample (line 108)
c = histcounts(rv, edges);
Error in SO3Fun/discreteSample (line 23)
rot = SO3G(discretesample(d,n));
Error in coeff_fourier (line 279)
ori = discreteSample(odf,3000);
Error in histcounts (line 123)
validateBinEdges(a);
Error in discretesample (line 108)
c = histcounts(rv, edges);
Error in SO3Fun/discreteSample (line 23)
rot = SO3G(discretesample(d,n));
Error in coeff_fourier (line 278)
ori = discreteSample(odf,3000);
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
I'm still new with mtex and I hope have been able to clearly express my issues.
I look forward to your answer.
Many thanks.
Moctar.
Beta Was this translation helpful? Give feedback.
All reactions