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
271 stars 180 forks source link

Can´t import EDAX .ang files #1322

Open carromer opened 2 years ago

carromer commented 2 years ago

Trying the import wizard and the command ebsd = loadEBSD_ang on EBSD files from EDAX in the format .ang I get the following error: EBSD format 'ANG' does not match the data

Using MTEX 5.8.0 in Matlab R2020b.

lfgmorales commented 2 years ago

Hi

Did you do EDS together with orientation measurements in this case? That might be one possibility, essentially you would have more columns in the input file. If you could share the file we can check

cheers

Luiz

Luiz F. G. Morales ScopeM & Structural Geology and Tectonics Group ETH Zürich


From: carromer @.***> Sent: 24 January 2022 13:52:51 To: mtex-toolbox/mtex Cc: Subscribed Subject: [mtex-toolbox/mtex] Can´t import EDAX .ang files (Issue #1322)

Trying the import wizard and the command ebsd = loadEBSD_ang on EBSD files from EDAX in the format .ang I get the following error: EBSD format 'ANG' does not match the data

Using MTEX 5.8.0 in Matlab R2020b.

— Reply to this email directly, view it on GitHubhttps://github.com/mtex-toolbox/mtex/issues/1322, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALE5IN3GF6BHCNU74J4KFI3UXVDSHANCNFSM5MVJI3SQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.***>

[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/mtex-toolbox/mtex/issues/1322", "url": "https://github.com/mtex-toolbox/mtex/issues/1322", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

carromer commented 2 years ago

Dear Luiz, It is from EDAX and now I am seeing that it comes with additional columns appart from the angles and the phase. I am attaching the document as a .txt because I couldn't use .ang

Thanks for your quick response. Regards, Carlos

sample1.txt

Debo-rah commented 2 years ago

Hi Carlos,

I use the following command to load .ang data from edax into mtex:

% Path to file and file name
File='PathToData\FileName'

% crystal symmetrie (Calcite)
CS={'notIndexed', crystalSymmetry('-3m', [4.99 4.99 17.064], 'X||a', 'Y||b*', 'Z||c*', 'mineral', 'Calcite', 'color', [0.53 0.81 0.98])}; 

%load ebsd data
ebsd = EBSD.load(File,CS,'interface','ang',...
  'convertEuler2SpatialReferenceFrame','setting 2');

Did the export from edax / OIM to .ang work properly?

Hope you find the problem! Deborah

carromer commented 2 years ago

I forgot to attach the file

sample1.txt

Thanks Deborah, I tried your approach but it still does not work

kilir commented 2 years ago

Hi, this appear to be a bug in txt2mat since the header is very long. As a temporary workaround, just delete many of these lines '# hklFamilies ' which are not used anyway. There'll be a fix. See 402db1e3030d419183570e910f21760284c10d5a

Cheers, Rüdiger