Giter Site home page Giter Site logo

lhp2dat's Introduction

lhp2dat

A small set of .py scripts to convert X-ray diffraction patterns between the .LHP, .dat and.csv file formats.

Description

PANalytical HighScore can export diffraction pattern data in a number of file formats. One of this is the .LHP format, which is very similar in syntax to the .dat format used by the refinement program Rietica. The scripts in this repository convert file formats between .LHP and .dat (lhp2dat.py), .LHP and .csv (lhp2csv.py), and the .txt file of the final refinement made by Rietica, and csv (refinement2csv.py).

Requirements

This repository contains Python (.py) scripts. All of the scripts were written using Python 3.6. Though each script differs slightly, the main libraries used are numpy, pyplot from matplotlib, and glob. These scripts were written using Spyder 3.1.x, using the Anaconda3 distribution.

Installation

All of the scripts should work anywhere. Just download and unzip.

Usage

The python scripts include code to search the present working directory (pwd) for the files it needs. For each file found, the relevant conversion will be performed, and the output file will be saved to the same pwd.

Feedback

I've uploaded the scripts onto GitHub so that they may be shared, repurposed and edited freely. That said, if you find an issue with the scripts that you'd like to discuss or have fixed, you are welcome to submit a pull request or issue.

lhp2dat's People

Contributors

ltegg avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.