pyBarSim
pyBarSim is a Python package to simulate wave-dominated shallow-marine environments using Storms (2003)'s BarSim.
Installation
You can directly install pyBarSim from pip:
pip install pybarsim
Or from GitHub using pip:
pip install git+https://github.com/grongier/pybarsim.git
Usage
Basic use:
import numpy as np
from pybarsim import BarSim2D
import matplotlib.pyplot as plt
# Set the parameters
run_time = 10000.
barsim = BarSim2D(np.linspace(1000., 900., 200),
np.array([(0., 950.), (run_time, 998.)]),
np.array([(0., 25.), (run_time, 5.)]),
spacing=100.)
# Run the simulation
barsim.run(run_time=10000., dt_fair_weather=15., dt_storm=1.)
# Interpolate the outputs into a regular grid
barsim.regrid(900., 1000., 0.5)
# Compute the mean grain size
barsim.finalize(on='record')
# Plot the median grid size in the regular grid
barsim.record_['Mean grain size'].plot(figsize=(12, 4))
plt.show()
For a more complete example, see the Jupyter notebook using_pybarsim.ipynb or the Binder link above.
Citation
If you use pyBarSim in your research, please cite the original article:
Storms, J.E.A. (2003). Event-based stratigraphic simulation of wave-dominated shallow-marine environments. Marine Geology, 199(1), 83-100. doi:10.1016/S0025-3227(03)00144-0
Here is the corresponding BibTex entry if you use LaTex:
@Article{Storms2003,
author="Storms, Joep E.A.",
title="Event-based stratigraphic simulation of wave-dominated shallow-marine environments",
journal="Marine Geology",
year="2003",
volume="199",
number="1",
pages="83--100",
issn="0025-3227",
doi="https://doi.org/10.1016/S0025-3227(03)00144-0",
}
Credits
This software was written by:
| Guillaume Rongier |
Joep Storms |
Andrea Cuesta Cano |
|---|
License
Copyright notice: Technische Universiteit Delft hereby disclaims all copyright interest in the program pyBarSim written by the Author(s). Prof. Dr. Ir. J.D. Jansen, Dean of the Faculty of Civil Engineering and Geosciences
© 2023, G. Rongier, J.E.A. Storms, A. Cuesta Cano
This work is licensed under a MIT OSS licence.
Metadata
Release files for pyBarSim 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyBarSim-0.1.0.tar.gz | 25.6 kB | Without provenance | Details for pyBarSim-0.1.0.tar.gz |
Release files / pyBarSim-0.1.0.tar.gz
| Download URL | pyBarSim-0.1.0.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4089b8041f60204787972bda7998c804f1abf262a3ca9b5f92c1521fc9ec6722
|
|
BLAKE2b-256 checksum How to use checksums |
d5da86cd338e722fccdbbbd2ef5128bcbb89412f1ad65488967d54b7862bb2e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Security for pyBarSim 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.