Question about converting CTF to CRC #1868
-
Dear MTEX Forum Experts, I am writing to seek your guidance regarding a specific issue I encountered while attempting to convert CTF to CRC format using MTEX. I have been using the following script: %% Import Script for EBSD Data
%
% This script was automatically created by the import wizard. You should
% run the whole script or parts of it in order to import your data. There
% is no problem in making any changes to this script.
%% Specify Crystal and Specimen Symmetries
% crystal symmetry
CS = {...
'notIndexed',...
crystalSymmetry('m-3m', [4 4 4], 'mineral', 'Aluminum', 'color', [0.53 0.81 0.98])};
% plotting convention
setMTEXpref('xAxisDirection','north');
setMTEXpref('zAxisDirection','outOfPlane');
%% Specify File Names
% path to files
pname = 'E:\SF_info\wechat\WeChat Files\wxid_ue0p3i9a3m5n22\FileStorage\File\2023-06';
% which files to be imported
fname = [pname '\1-2.ctf'];
%% Import the Data
% create an EBSD variable containing the data
ebsd = EBSD.load(fname,CS,'interface','ctf',...
'convertEuler2SpatialReferenceFrame');
export_crc(ebsd,'.\1-2.crc') However, I encountered the following error:
It seems that Thank you in advance for your time and assistance. I look forward to hearing from you. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @PengWei97, export_crc returns an error because the information located within "ebsd.opt.cprInfo" is missing. Please have a look at following weblink which overcomes this limitation: This modified function should enable you to export a *.cpr and *.crc file irrespective of input file type. Warm regards, |
Beta Was this translation helpful? Give feedback.
Hi @PengWei97,
export_crc returns an error because the information located within "ebsd.opt.cprInfo" is missing.
The function cannot generate a *.cpr file because your input file is in *.ctf format.
Please have a look at following weblink which overcomes this limitation:
https://github.com/AzdiarGazder/mtexTools/tree/main/hex2Square
This modified function should enable you to export a *.cpr and *.crc file irrespective of input file type.
Hope this helps! :)
Warm regards,
Azdi