Giter VIP home page Giter VIP logo

d-piper's Introduction

D-Piper - A modified Piper diagram

Overview

D-Piper is a free source code developed in Python 3 that allows to represent large hydrochemical data sets throughout point density diagrams. Multiple methods of data distribution can be chosen for data visualization.

How does it work?

To make a D-Piper diagram just follow these steps:

1. Prepare the file structure:

Keep the file structure as shown in the figure:

  • The input analytical data files must be saved in the Data folder. The sample files used in the article to make Figures 2, 3, 4 and 5 can be found in this folder.
  • The D-Piper diagrams will be saved in the Graphics folder. It currently contains some example images.
  • The file D_Piper_v1_options.txt contains the necessary instructions and explanations to build the desired D-Piper diagram.
  • The file D_Piper_v1.py is the script that you have to run in Python to build a D-Piper diagram. The script is widely commented.
  • The Tools.py file is an auxiliary Python code that act as a module and contains all the functions with which the D_Piper_v1.py file operates.

Do not delete or change any of the above files or folders. If necessary, you can add other folders or files. Note that automatically a pycache folder is created, requiered for an optimal execution of the program.

The script always reads the drawing options from the D_Piper_v1_options.txt file. If you want to save a set of options, you must do so by renaming the file or saving it to another location. For further use, you will have to name it as the original one (D_Piper_v1_options.txt) or update the new name in line 65 of the D_Piper_v1.py file.

2. Preparing the data file:

The data file must be in ASCII format and saved in the Data folder. The data file can have any name. The structure of the data file should be as follows:

  • TAB-separated ASCII file
  • It must contain ten columns:

Identifier: sample identification number.
Group: Each sample can belong to a different group. Up to nine groups can be differentiated. Although no error will be shown, setting more groups will create overlap problems.
Eight columns with analytical results. The ion content should be expressed in mg/L (milligrams per liter) or ppm (parts per million).

3. Preparing the Options file:

The D_Piper_v1_options.txt file must be in ASCII format, separated by semicolon (;) It is a self-explanatory file that shows all the options of the program. It is essential to comply with the file format to avoid execution errors.

The contents of this file are explained at the end of this document. Options that can be modified are shown in red, explanatory text and guidelines are shown in blue, and variable names in black.

Authors

All authors belong to IGME Geological Survey of Spain. C/Ríos Rosas 23, 28003 Madrid, Spain

Copyright

License: GPLv3

d-piper's People

Contributors

miguelongonzalez avatar chesstor avatar luismoreno12 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.