Skip to main content

A python package for working with crystal orientations in transmission electron microscopy

Project description


pycotem is a python package for working with crystal orientations in transmission electron microscopy. It provides 6 GUI tools to:

  • determine orientation from diffraction patterns: diffraction

  • determine orientation from Kikuchi patterns: kikuchi

  • work with stereographic projections: stereoproj

  • determine interface normal and direction from images: interface

  • determine orientation relationship and misorientation between two crystals: misorientation

  • display crystal projection on a plane and draw dichromatic patterns: crystal

Getting Started


pycotem relies on python2.7 with numpy>=1.13.3, pillow>=5.3.0, matplotlib>=2.1.1 packages which can be installed with pip. GUI relies on pyqt4.

Installing and running

pycotem can be installed with pip: pip install pycotem Run python -m pycotem.xxxx for the different tools: stereoproj, diffraction, kikuchi,misorientation,interface and crystal.


Image files and setting parameters are provided in the test directory in the github repository for testing diffraction, interface and kikuchi.


Contributions, bug issues, requests and comments can be adressed directly or through pull-request on github.


F. Mompiou, with idea from RX Xie (Tsinghua Univ), J. Du (Tsinghua Univ.) and the contribution of G. Perret (Univ. Toulouse).


This project is licensed under the GPL-3.0 License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pycotem, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pycotem-1.1.0-py2-none-any.whl (853.0 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size pycotem-1.1.0.tar.gz (832.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page