Skip to content

python examples

Marc DeGraef edited this page Sep 5, 2019 · 1 revision

python wrapper examples

Starting with EMsoft release 4.3, we offer the ability to use python wrappers to a selected set of library modules; our goal is to have full python access to all modules starting with release 4.4. The nightly EMsoft builds for Mac OS X and Windows 10 contain a folder with a python library called pyEMsoft.py. By setting the path in your python script to the correct folder, you should be able to call any function/subroutine from the following EMsoft modules:

stringconstants.f90
local.f90
io.f90
error.f90 
CLsupport.f90 
constants.f90 
math.f90
typedefs.f90
crystal.f90 
symmetry.f90 
files.f90 
others.f90
quaternions.f90 
Lambert.f90
rotations.f90
diffraction.f90
so3.f90
dictmod.f90
commonmod.f90
HDFsupport.f90
utilities.f90

The python wrapper distribution for EMsoft has several folders: docs, examples, and unittests. The examples folder is probably the most useful one; it contains the following example python scripts:

Information for Users

Home

SEM Modalities     - Monte Carlo Simulations
    - EBSD Master Pattern Simulations
    - EBSD Overlap Master Patterns
    - EBSD Pattern Simulations
    - EBSD Dictionary Indexing
    - EBSD Spherical Indexing
    - EBSD Reflector Ranking
    - EBSD HREBSD
    - ECP Master Pattern Simulations
    - ECP Pattern Simulations
    - TKD Master Pattern Simulations
    - TKD Pattern Simulations
    - ECCI Defect Image Simulations
TEM Modalities     - HH4
    - PED
    - CBED Pattern Simulations
    - STEM-DCI Image Simulations
    - EMIntegrateSTEM utility
XRD Modalities     - Laue Master Pattern Simulation
    - EMLaue
    - EMLaueSlit
General Parameter Definitions * Foil Defect Configuration Definitions
EMsoftWorkbench
Utility Programs     - EMConvertOrientations
    - EMDisorientations
    - EMHOLZ
    - EMKikuchiMap
    - EMOpenCLinfo
    - EMZAgeom
    - EMcuboMK
    - EMdpextract
    - EMdpmerge
    - EMdrawcell
    - EMeqvPS
    - EMeqvrot
    - EMfamily
    - EMGBO
    - EMGBOdm
    - EMgetEulers
    - EMgetOSM
    - EMlatgeom
    - EMlistSG
    - EMlistTC
    - EMmkxtal
    - EMorbit
    - EMorient
    - EMqg
    - EMsampleRFZ
    - EMshowxtal
    - EMsoftSlackTest
    - EMsoftinit
    - EMstar
    - EMstereo
    - EMxtalExtract
    - EMxtalinfo
    - EMzap
IDL Scripts     - Virtual Machine Apps
    - SEMDisplay
    - Efit
    - CBEDDisplay
python wrappers     - python examples
Docker     - Docker Image

Complete Examples

  1. Crystal Data Entry Example
  2. EBSD Example
  3. ECP Example
  4. TKD Example
  5. ECCI Example
  6. CBED Example
  7. Dictionary Indexing Example
  8. DItutorial

Information for Developers

Clone this wiki locally