mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
288 stars 185 forks source link

Improve exportang function #804

Open LalitKaushik1991 opened 3 years ago

LalitKaushik1991 commented 3 years ago

The ang file exported using "exportang" function does not open due to crystal symmetry mismatch.

ralfHielscher commented 3 years ago

Could you please be a little bit more specific? What have you done? What was the error message ...

Thank you,

Ralf.

LalitKaushik1991 commented 3 years ago

Dear Ralf,

Sorry for the very brief description initially.

I am using MTEX for parent grain reconstruction from martensite ebsd data. The code is running fine.

After reconstruction, I am trying to export 'parentEBSD' to .ang file.

image

The execution is successful but when I try to open this .ang file, I get an error in the TSL software.

image

I also tried to copy the header of .ang file which I use to calculate pre austenite grains to the exported .ang file. But this way TSL is just crashing and even not giving an error.

Also, the "parentEBSD" object have many "nan" values. image

These are remaining even after using the following code.

image

ralfHielscher commented 3 years ago

Thank you for reporting this issue.

I just updated the function https://github.com/mtex-toolbox/mtex/blob/develop/EBSDAnalysis/%40EBSD/export_ang.m Could you please check whether this resolves your problem?

Ralf.

LalitKaushik1991 commented 3 years ago

Dear Ralf,

The problem still persists. I am attaching a snapshot of the .ang file generated from the updated code.

The crystal symmetry identifier is missing on line no. 11. Also,

I was wondering whether putting 0 for "#NumberFamilies" is a valid format or not. So I tried putting 0 for "NumberFamilies" in the .ang file generated by TSL and it was working fine.

image

Lalit Kaushik

ralfHielscher commented 3 years ago

Sorry, there was a small mistake. Can you try again?

Ralf.

LalitKaushik1991 commented 3 years ago

The problem with the symmetry identifier is now resolved. But TSL is still showing the same error message.

You can see the content of .ang file in the image below. I think MTEX converts nan values of Euler angles to zeros.

image

ralfHielscher commented 3 years ago

Could you please by hand replace the 129 by 43 in the ang file?

Thank you very much for your help.

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.hielscher@mathematik.tu-chemnitz.de D-09126 Chemnitz http://www.tu-chemnitz.de/~rahi


On Wed, Feb 24, 2021 at 12:09 PM LalitKaushik1991 notifications@github.com wrote:

The problem with the symmetry identifier is now resolved. But TSL is still showing the same error message.

You can see the content of .ang file in the image below. I think MTEX converts nan values of Euler angles to zeros.

[image: image] https://user-images.githubusercontent.com/74644807/108991425-7226e880-76db-11eb-9a3a-8de469b52e13.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mtex-toolbox/mtex/issues/804#issuecomment-785000109, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBYJ2O5KHH2IBMOW2FBMRLTATM6ZANCNFSM4YCKIBVQ .