exportEBSD_ctf edit page

export EBSD data to a Channel 5 text file (ctf)

Description

The resulting ctf file can for instance be opened with Channel 5, Aztec or Atex. Where the data was imported from a ctf file, the acquisition parameters that MTEX does not model - magnification, tilt, detector orientation - are taken over from ebsd.opt.header instead of being written as zeros. They can also be handed over as the structure a cpr file import returns, or typed in.

Phases are written the way Channel numbers them: 1 to N in the order of the phase table, with 0 for not indexed.

Syntax

ebsd = EBSD.load('myfile.ang')
export(ebsd,'myFile.ctf')
exportEBSD_ctf(ebsd,'myFile.ctf',cprStruct)
exportEBSD_ctf(ebsd,'myFile.ctf','manual')

Input

ebsd EBSD
fName Filename, optionally including relative or absolute path
cprStruct structure with properties from a cpr file import

Options

EulerCorrection alignment of the Euler angle and the map reference frame the file is written for, default is the rotation of 180 degree about z that loadEBSD_ctf reads with

Flags

manual prompt for the microscopy parameters
flipud flip ebsd spatial data upside down (not the orientation data)
fliplr flip ebsd spatial data left right (not the orientation data)
silent do not print what is being written

Authors

Originally contributed by Dr. Frank Niessen, University of Wollongong, 2019, with acknowledgements to Dr. Azdiar A. Gazder - see the license at the end of this file.

See also

EBSD.export exportEBSD_ang exportEBSD_h5