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
275 stars 182 forks source link

after export as ang - cant load ang file because of CS #1048

Open accessT opened 3 years ago

accessT commented 3 years ago

I did the beta-reconstruction. Exported as ang file. Now it is not possible to load the ebsd data from this file. grafik

It seems to be a Symmetry problem. when i change # Symmetry 131 to # Symmetry m-3m

it works fine. Please test it. unzip the file: a.zip

CS = {'notIndexed', crystalSymmetry('m-3m', 'mineral', 'Ti (beta)'), 'notIndexed'};
ebsd = EBSD.load('a.ang', CS, 'interface','ang');

I found an older reconstruction i did early february 2021. This file is allways working. EDXLMDTi64 R4 Site 3 Map Data 27 - reconstructionalpha2beta via_MTEX_methode.zip

Therefore i changed your changes back you did on #804 ...\EBSDAnalysis\@EBSD\export_ang.m

Line: 67 fprintf(filePh,'# %-22s%d\n','Symmetry', OIMSymId(cs.id)); back to: fprintf(filePh,'# %-22s%s\n','Symmetry',cs.pointGroup);

with this change it is exporting as m-3m and i can load the ebsd from ang.

Savillian commented 3 years ago

I've had the same issue. It seems to be some formatting and/or symmetry issue like you called out.

I edited the exported .ang file to match the initial file I supplied, and the issue resolved itself.