mtex icon indicating copy to clipboard operation
mtex copied to clipboard

Improve exportang function

Open LalitKaushik1991 opened this issue 3 years ago • 7 comments

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

LalitKaushik1991 avatar Feb 23 '21 11:02 LalitKaushik1991

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

Thank you,

Ralf.

ralfHielscher avatar Feb 23 '21 11:02 ralfHielscher

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

LalitKaushik1991 avatar Feb 23 '21 12:02 LalitKaushik1991

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.

ralfHielscher avatar Feb 24 '21 07:02 ralfHielscher

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

LalitKaushik1991 avatar Feb 24 '21 10:02 LalitKaushik1991

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

Ralf.

ralfHielscher avatar Feb 24 '21 10:02 ralfHielscher

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

LalitKaushik1991 avatar Feb 24 '21 11:02 LalitKaushik1991

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: [email protected] D-09126 Chemnitz http://www.tu-chemnitz.de/~rahi


On Wed, Feb 24, 2021 at 12:09 PM LalitKaushik1991 [email protected] 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 .

ralfHielscher avatar Feb 24 '21 11:02 ralfHielscher