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

Small Edit in export_ctf - function #1047

Closed M-See closed 3 years ago

M-See commented 3 years ago

Dear developers,

I wanted to convert .ang-files to .ctf-files (from OIM Software to Channel 5 compatible files)

I used cleaned EBSD data from the OIM software in .ang format and tried to convert it with the export_ctf - function to .ctf format. When looking at the result file, the x-axis showed duplicate values and the map appeared square instead of its original size.

By debugging we found out that in line 204 the x-values are defined as:

X = repmat(1:size(ebsdGrid,1),size(ebsdGrid,2),1);

After changing the parameters to:

X = repmat(1:size(ebsdGrid,2),size(ebsdGrid,1),1);

the maps looked alike and the conversion was successful.

Also the orientation data were correctly assigned now correctly .

MTex 5.6.0

ralfHielscher commented 3 years ago

Is there a specific reason, why you use the outdated version 5.6? Are you able to check, whether the issue occurs in MTEX 5.7 as well?

Ralf.

M-See commented 3 years ago

Is there a specific reason, why you use the outdated version 5.6? Are you able to check, whether the issue occurs in MTEX 5.7 as well?

Ralf.

Hi Ralf,

as far as I have checked, this error no longer occurs in the new version. Neither in the export_ctf nor in the ebsd.export function.

Greetings, Mattis