Giter Site home page Giter Site logo

texeval2mtex's Introduction

TexEval to MTEX

Scripts enabling TexEval pole figure intensities to be analysed in MTEX.

Contents

texeval2mtex.py

Python script to write pole figure intensities from a TexEval RES-file into MTEX-ready DAT-files.

To use, install necessary libraries from requirements.txt, then enter e.g.

$ python texeval2mtex.py example_data/polefigure_intensities.res 4

The last argument, 4, specifies the number of pole figures in the RES-file.

The script outputs as many *_corr.dat (raw pole figure data corrected for defocusing) and *_uncorr.dat (from ODF values after defocusing correction) files as input pole figures.

requirements.txt

Necessary Python libraries. Install into a virtualenv using pip

$ pip install -r requirements.txt

or into a Conda environment using

$ conda install --yes --file requirements.txt

texeval2mtex.m

Matlab script to create a MTEX PoleFigure object from four (or three, five, etc.) pole figures by using loadPoleFigure_generic, and then calculate the ODF, plot intensities along fibres (beta and Cube-Goss) and calculate volume fractions.

For writing of figures created by MTEX to disk, the function export_fig, created by Yair Altman available here export_fig - File Exchange, is recommended. After the plotting lines for a specific figure, or in the command window when the specific figure is selected, enter e.g. (for 100 dpi resolution)

export_fig([path 'odf_fibre_cube_goss.png'],'-r100')

Uses functions implemented in MTEX 5.2.beta2.

texeval2mtex's People

Contributors

hakonanes 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.