{"id":22635791,"url":"https://github.com/grongier/pybarsim","last_synced_at":"2025-08-12T06:06:27.553Z","repository":{"id":211413932,"uuid":"728205178","full_name":"grongier/pybarsim","owner":"grongier","description":"Python package to simulate wave-dominated shallow-marine environments using Storms (2003)'s BarSim","archived":false,"fork":false,"pushed_at":"2024-11-29T22:56:16.000Z","size":20560,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T06:13:05.875Z","etag":null,"topics":["barsim","geology","geosciences","process-based","python","stratigraphic-modeling","stratigraphy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grongier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-06T13:02:10.000Z","updated_at":"2025-05-20T19:47:57.000Z","dependencies_parsed_at":"2023-12-30T03:32:22.592Z","dependency_job_id":"89f4b8a6-d9ef-4723-89d7-d438205c8612","html_url":"https://github.com/grongier/pybarsim","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"0370144dd64064ce7e49976e7c9620b6887e0024"},"previous_names":["grongier/pybarsim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/grongier/pybarsim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grongier%2Fpybarsim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grongier%2Fpybarsim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grongier%2Fpybarsim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grongier%2Fpybarsim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grongier","download_url":"https://codeload.github.com/grongier/pybarsim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grongier%2Fpybarsim/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270011172,"owners_count":24511896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barsim","geology","geosciences","process-based","python","stratigraphic-modeling","stratigraphy"],"created_at":"2024-12-09T03:15:53.740Z","updated_at":"2025-08-12T06:06:27.524Z","avatar_url":"https://github.com/grongier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyBarSim\n\n[![DOI:10.4121/60f148ee-a793-4d16-b1b6-c03442403db1.v1](http://img.shields.io/badge/DOI-10.4121/60f148ee--a793--4d16--b1b6--c03442403db1.v1-B31B1B.svg)](https://doi.org/10.4121/60f148ee-a793-4d16-b1b6-c03442403db1.v1) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/grongier/pybarsim/master?filepath=examples)\n\npyBarSim is a Python package to simulate wave-dominated shallow-marine environments using [Storms (2003)](https://doi.org/10.1016/S0025-3227(03)00144-0)'s BarSim.\n\n![](https://raw.githubusercontent.com/grongier/pybarsim/master/image.jpg)\n\n## Installation\n\nYou can directly install pyBarSim from pip:\n\n    pip install pybarsim\n\nOr from GitHub using pip:\n\n    pip install git+https://github.com/grongier/pybarsim.git\n\n## Usage\n\nBasic use:\n\n```\nimport numpy as np\nfrom pybarsim import BarSim2D\nimport matplotlib.pyplot as plt\n\n# Set the parameters\nrun_time = 10000.\nbarsim = BarSim2D(np.linspace(1000., 900., 200),\n                  np.array([(0., 950.), (run_time, 998.)]),\n                  np.array([(0., 25.), (run_time, 5.)]),\n                  spacing=100.)\n# Run the simulation\nbarsim.run(run_time=10000., dt_fair_weather=15., dt_storm=1.)\n# Interpolate the outputs into a regular grid\nbarsim.regrid(900., 1000., 0.5)\n# Compute the mean grain size\nbarsim.finalize(on='record')\n# Plot the median grid size in the regular grid\nbarsim.record_['Mean grain size'].plot(figsize=(12, 4))\nplt.show()\n```\n\nFor a more complete example, see the Jupyter notebook [using_pybarsim.ipynb](examples/using_pybarsim.ipynb) or the Binder link above.\n\n## Citation\n\nIf you use pyBarSim in your research, please cite the original article:\n\n\u003e 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\n\nHere is the corresponding BibTex entry if you use LaTex:\n\n\t@Article{Storms2003,\n\t\tauthor=\"Storms, Joep E.A.\",\n\t\ttitle=\"Event-based stratigraphic simulation of wave-dominated shallow-marine environments\",\n\t\tjournal=\"Marine Geology\",\n\t\tyear=\"2003\",\n\t\tvolume=\"199\",\n\t\tnumber=\"1\",\n\t\tpages=\"83--100\",\n\t\tissn=\"0025-3227\",\n\t\tdoi=\"https://doi.org/10.1016/S0025-3227(03)00144-0\",\n\t}\n\n## Credits\n\nThis software was written by:\n\n| [Guillaume Rongier](https://github.com/grongier) \u003cbr\u003e[![ORCID Badge](https://img.shields.io/badge/ORCID-A6CE39?logo=orcid\u0026logoColor=fff\u0026style=flat-square)](https://orcid.org/0000-0002-5910-6868)\u003c/br\u003e | [Joep Storms](https://www.tudelft.nl/en/ceg/about-faculty/departments/geoscience-engineering/sections/applied-geology/staff/academic-staff/storms-jea) \u003cbr\u003e[![ORCID Badge](https://img.shields.io/badge/ORCID-A6CE39?logo=orcid\u0026logoColor=fff\u0026style=flat-square)](https://orcid.org/0000-0002-8902-8493)\u003c/br\u003e | [Andrea Cuesta Cano](https://www.tudelft.nl/citg/over-faculteit/afdelingen/geoscience-engineering/sections/applied-geology/staff/phd-students/cuesta-cano-a) \u003cbr\u003e[![ORCID Badge](https://img.shields.io/badge/ORCID-A6CE39?logo=orcid\u0026logoColor=fff\u0026style=flat-square)](https://orcid.org/0000-0002-7017-6031)\u003c/br\u003e |\n| :---: | :---: | :---: |\n\n## License\n\nCopyright 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\n\n\u0026#169; 2023, G. Rongier, J.E.A. Storms, A. Cuesta Cano\n\nThis work is licensed under a MIT OSS licence.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrongier%2Fpybarsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrongier%2Fpybarsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrongier%2Fpybarsim/lists"}