Skip to content
forked from arthursn/pyebsd

python library for post-processing of Electron Backscattered Diffraction (EBSD) data

Notifications You must be signed in to change notification settings

fanchercm/pyebsd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

pyebsd is an python implemented open-source tool for processing Electron Backscattered Diffraction (EBSD) data. The main implemented features are:

  • pole figures
  • inverse pole figures for cubic crystals
  • accurate orientation relationship for cubic crystals
  • misorientation

Installation and requirements

pyebsd runs in python 2 (>=2.7) and python 3 (>= 3.5) and uses the following non-standard python libraries:

  • numpy
  • matplotlib
  • pandas
  • scipy
  • pillow

pyebsd is not available yet at PyPI. In order to install the library, first download the repository:

git clone https://github.com/arthursn/pyebsd

Then install pyebsd by running the setup.py file:

python setup.py install

Please be aware that administrator permissions might be necessary.

Use the --user option to install pyebsd in the user folder:

python setup.py install --user

Please notice that setuptools must be installed beforehand.

When pyebsd is installed using setup.py, all dependencies should be automatically solved.

If the dependencies are not solved, the required libraries can be installed from the Python Package Index using pip:

pip install numpy matplotlib pandas scipy pillow

Basic usage

Examples can be found in the examples folder. A jupyter notebook with interactive examples is provided here.

Load EBSD data:

import matplotlib.pyplot as plt
import pyebsd

# So far, pyebsd only supports loading .ang files generated
# by the TSL OIM software
scan = pyebsd.load_scandata('path/to/ang/file')

Plot Inverse Pole Figure (IPF) map:

# gray=scan.IQ is used to set the quality index as grayscale
scan.plot_IPF(gray=scan.IQ)
plt.show()

Plot phase map:

scan.plot_phase(gray=scan.IQ)
plt.show()

Plot pole figure:

scan.plot_PF()
plt.show()

About

python library for post-processing of Electron Backscattered Diffraction (EBSD) data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.9%
  • Jupyter Notebook 4.1%