file_reader#

orix.io.plugins.ctf.file_reader(filename: str) CrystalMap[source]#

Return a crystal map from a file in the Channel Text File (CTF) format.

The map in the input is assumed to be 2D.

Many vendors/programs produce a .ctf files. Files from the following vendors/programs are tested:

  • Oxford Instruments AZtec

  • Bruker Esprit

  • NanoMegas ASTAR Index

  • EMsoft (from program EMdpmerge)

  • MTEX

All points with a phase of 0 are classified as not indexed.

Parameters:
filename

Path to file.

Returns:
xmap

Crystal map.

Notes

Files written by MTEX do not contain information of the space group.

Files written by EMsoft have the column names for mean angular deviation (MAD), band contrast (BC), and band slope (BS) renamed to DP (dot product), OSM (orientation similarity metric), and IQ (image quality), respectively.