Code Monkey home page Code Monkey logo

pyebsd's Introduction

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

pyebsd is in development stage and, for now, is only able to process phases of cubic symmetry. Its main use case is steel microstructures.

pyebsd is a "pure" Python package, meaning that it does not depend on building extension modules. For computational expensive calculations, such as manipulation of matrices, it relies on the clever vectorized operations with NumPy.

Installation

pyebsd runs in Python 3 (>= 3.5). Earlier versions of pyebsd still work on python 2, but python 2 support has been deprecated.

pyebsd is not available yet in the Python Package Index. In order to install the library, first download the repository:

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

Then install pyebsd by running pip with the cloned ./pyebsd folder (local repository) as argument:

pip install ./pyebsd

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="IQ" is used to set the quality index as grayscale
scan.plot_IPF(gray="IQ")
plt.show()

Plot phase map:

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

Plot pole figure:

scan.plot_PF()
plt.show()

pyebsd's People

Contributors

arthursn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.