Skip to main content

Librería para ploteo de columnas estratigráficas

Project description

⛏️ StratiLib

StratiLib facilitates the loading, processing and ploting stratigraphic columns.

Open-source stratigraphic modeling in Python.

license: LGPL v3 Developed by Rubens Merlino.

📝 Introduction

StratiLib was designed to plot stratigraphic columns with matplotlib and analyze stratigraphic data with a very simple excel input file for non programers.

StratiLib reads Excel files (xlsx) and csv files from exporting SedLog 3.1 plots, and also from xlsx files, with a very simple format, generate csv files to import from SedLog 3.1 too.

StratiLib has all and more lithologys than sedLog 3.1 and also, at least, the same geological structures, fossils and trace fossils to be referenced in stratigraphic columns.

StratiLib use Pandas Dataframes to manipulate data.

In further versions, StratiLib will can analyze data statistically and apply machine learning models to them.

⚡ Installation

pip install stratilib

StratiLib depends on the following packages:

  • pandas
  • matplotlib
  • numpy

📓 Quick start

In the next lines you can see the most important functions of StratiLib

#Import library
import stratilib as sl

#Read data see the tutorials for templates
df_lithology = sl.read_litho('my_data.xlsx', **kwargs)

#Plot data
sl.plot_litho(df_lithology, plot_width, top_depth, bottom_depth, **kwargs)

#Read SedLog csv
df_sedlog = sl.read_sedlog(name = "my_sedlog.csv")

#Plot SedLog data
sl.plot_litho(df_sedlog, plot_width, top_depth, bottom_depth, **kwargs)

#Write SedLog csv to be imported from SedLog 3.1
sl.to_sedlog_csv(df_data, **kwargs)

#Plot lithologies
sl.show_litho(**kwargs)

#Plot structures and fossils
sl.show_structs(**kwargs)

In the tutorial notebooks you can find more parameters.

📚 Documentation

The StratiLib documentation is a work in progress.

💡 Questions or suggestions?

To report bugs or suggest new features/improvements to the code, please open an issue.

✨ Contributing

There are several important ways you can help; here are some examples:

  • Submitting bug reports and feature requests: see Issues.
  • Fixing typos and generally improving the documentation.
  • Writing tutorials, examples, and how-to documents.

Please see contact me for more information.

🖼️ Gallery of examples

Example of some stratigraphic columns

Example 1

Example of lithologies and its patterns that can be used

#Plot lithologies that can be used
sl.show_litho()

Example 1

Example of Structures and Fossils that can be used

#Plot structures and fossils that can be used
sl.show_structs()

Example 2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stratilib-0.1.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stratilib-0.1.0-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file stratilib-0.1.0.tar.gz.

File metadata

  • Download URL: stratilib-0.1.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for stratilib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 01a4578eb0379d11b09984f695848b4b2cd5ce11d59e15b9cf746711d8960e9e
MD5 9e6d220d263a398ffcf268a33de70437
BLAKE2b-256 11e5e50cc190ff27bf18898d0445d7ab519f08653d26c577b39f10afd07ab905

See more details on using hashes here.

File details

Details for the file stratilib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stratilib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for stratilib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c8a9a4cede5b341117e4f42ef772db8f910e0cae57f64f37768e7578eafba06
MD5 d2c39c4907f603761685c912d0b7b85e
BLAKE2b-256 3091dc1f142f8cb4fa3f06390a111fc2cbb1146d1592a48eedc0d3799ed9cebd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page