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
281 stars 185 forks source link

Problem loading 3D EBSD data #1170

Closed aplowman closed 2 years ago

aplowman commented 3 years ago

What do you want to do? Load 3D EBSD data from a series of .ctf files, representing slices through the material. I would actually like to use the grain segmentation algorithm within MTEX on data from full-field crystal plasticity simulations. But I thought I would start by trying to load some experimental data.

What data do you have? A series of .ctf files

What code do you use? The following script was generated by the import_wizard for loading a series of EBSD images.

%% Import Script for EBSD Data
%
% This script was automatically created by the import wizard. You should
% run the whoole 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('6/mmm', [3.2 3.2 5.1], 'X||a*', 'Y||b', 'Z||c*', 'mineral', 'Zirc-alloy4', 'color', [0.53 0.81 0.98]),...
  crystalSymmetry('m-3m', [3.5 3.5 3.5], 'mineral', 'Zr', 'color', [0.56 0.74 0.56])};

% plotting convention
setMTEXpref('xAxisDirection','north');
setMTEXpref('zAxisDirection','outOfPlane');

%% Specify File Names

% path to files
pname = 'path\to\data';

% which files to be imported
fname = {...
  [pname '\Slice 1\ebsd maps 001.ctf'],...
  [pname '\Slice 2\ebsd maps 002.ctf'],...
  [pname '\Slice 3\ebsd maps 003.ctf'],...
  };

%% Z-Values

Z = [
  1,...
  2,...
  3 ];

%% Import the Data

% create an EBSD variable containing the data
ebsd = EBSD.load(fname,CS,'interface','ctf','3d',Z,...
  'convertEuler2SpatialReferenceFrame');

What result do you get

I get an error:

Unrecognized property 'z' for class 'EBSD'.

Error in EBSD.load (line 96)
    ebsd{k}.z = repmat(Z(k),length(ebsd{k}),1);
    %#ok<AGROW>

Error in CD_Zr_example (line 41)
ebsd = EBSD.load(fname,CS,'interface','ctf','3d',Z,...

What result do you expect A successfully loaded ebsd object.

What MTEX version do you use? 5.7.0 on Matlab R2020a

Thanks!

kilir commented 2 years ago

Hi, 3D EBSD support in mtex has been dropped many years ago. Cheers, Rüdiger

aplowman commented 2 years ago

Thanks for the info.