Code Monkey home page Code Monkey logo

pypsd's Introduction

PyPSD

License

PyPSD is a Python program for calculating the particle size distribution (PSD) of any sample. Measuring particle sizes and calculating their distribution in a sample is crucial for understanding diverse physical and chemical processes. Particle sizes can be determined with ImageJ, a free and open-source scientific imaging program (or any other software with this functionality). That data is then used by PyPSD in order to produce the relevant distributions.

Installation and use

PyPSD has been tested with Python 3 and Anaconda Python 4+ on macOS, Linux, and Windows. It should work on any system with the required Python packages installed.

Python requirements: numpy, matplotlib, argparse, os

Usage: python pypsd.py [--help] -b BINSFILE -i INPUTFILE [-o OUTPUTDIR]

For maximum compatibility, PyPSD is designed to be executed directly from the command line which is available on all operating systems. The --help option will display a useful help message. Use the -b and -i flags to specify your bin and input files. The optional -o argument allows you to specify a directory to output your results.

Your input data should be in a text (.txt) file with a single column containing the measured particle areas. Your bins should also be in a text file with a single column of bin limits. These are used to classify your particles by diameter. Your bins should obviously be in units compatible with the areas listed in your input file. Sample input (sample_input.txt) and bin (bins.txt) files are included.

License

Copyright 2017 Sean M. Anderson and Liliana Villafaña-López.

PyPSD is free software made available under the BSD-3-Clause License. For details please see the LICENSE file.

pypsd's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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