Giter Site home page Giter Site logo

pythonplotutility's Introduction

pythonPlotUtility

some scripts for plotting results from database from iEBE package with matplotlib

Pipeline for collecting data from URQMD format and make sense of it:

1. collect raw data to preliminary data base

This step collects URQMD output from .dat files to a SQLite database file, with default name "particles.db". The .dat files should be put under a folder with the name event-%d, to make it recognizable by the collector. Suppose we have one such folder with the name event-1 in the current folder, the following line collect data from it and write out a database at the current folder.

./EbeCollectorShell_particlesUrQMD.py ./

2. convert collected data to a nicer form

This step is a bridge step to covert raw data in the database to more interesting data. It generates a new and smaller SQLite file with the default name "analyzed_particles.db". The converter "particleReader.py" will reorganize the tables in the database and sort particles by rapidity etc. Simply run the shell to do it.

./particleReaderShell.py particles.db

3. analyze the database

The script "AnalyzedEventsReader.py" contains many functions which can calculate and output flow, spectra etc. Write what you want to know at the end of this file, and excute it.

python AnalyzedEventsReader.py analyzed_particles.db

pythonplotutility's People

Contributors

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