Re: import multiple EBSD .ctf files

222 views
Skip to first unread message

Ralf Hielscher

unread,
Dec 7, 2012, 3:21:33 PM12/7/12
to mtex...@googlegroups.com
Assume your file names are

fnames={'name1.ctf','name2.ctf','name3.ctf'};

Then one can use a loop to import these data and store them into a list of EBSD variables

for n = 1:numel(fnames)
  ebsd_list
{n} = loadEBSD(fnames{n});
end

All these EBSD data can be joined into one EBSD variable by

ebsd_joined = [ebsd_list{:}]


Komal

unread,
Dec 7, 2012, 4:55:27 PM12/7/12
to mtex...@googlegroups.com
Thanks Dr. Hielscher for your reply! 

The only problem I am having with the above method is that for each .ctf file (each new field of view)  the data numbering is started from x=0, y=0 referring to the start of the new field of view position, so by joining it this way, mtex gives a warning of duplicity and rewrites over the previous data.
(Example each ctf file with EBSD data starts with:
               X    Y      Bands Error   Euler1 Euler2 Euler3
     0.0000   0.0000 4 0   73.731 47.780 36.648
     0.2500   0.0000 4 0   73.251 47.762 36.669.....

Warning: spatially duplicated data points, perceed by erasing them

The error makes sense to me, I am now trying to see if there is a way to fix this without needing to manually rewrite the ctf files.

Ralf Hielscher

unread,
Dec 7, 2012, 5:23:13 PM12/7/12
to mtex...@googlegroups.com
You may shift the different ebsd data sets according to there actual positioning [dx{n}, dy{n}] at the specimen by 

for n = 1:numel(fnames)
  ebsd_list
{n} = loadEBSD(fnames{n});

  ebsd_list
{n} = shift(ebsd_list{n},[dx{n} dy{n}]);
end


Reply all
Reply to author
Forward
0 new messages