CarboKitten

Julia implementation of carbonate platform model

https://github.com/mindthegap-erc/carbokitten.jl

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: sciencedirect.com
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.7%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Julia implementation of carbonate platform model

Basic Info
Statistics
  • Stars: 5
  • Watchers: 3
  • Forks: 0
  • Open Issues: 32
  • Releases: 8
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Citation

README.md

CarboKitten

Modeling Carbonate Platforms in Julia

Documentation Badge Entangled badge

CarboKitten is a reimplementation of Peter Burgess' CarboCAT, a model for generating carbonate platform stratigraphies. CarboKitten is a three-dimensional model, having two spatial dimensions and one for stored stediment.

Features:

  • Cellular Automata to regulate facies type
  • Advection-diffusion based sediment transport
  • Designed with performance in mind
  • Written with Open Science practices in mind

CarboKitten should be easy to get into and extend. All our code is extensively documented.

Sample output stratigraphy

CarboKitten is written in Julia for performance and extensibility.

Running

CarboKitten requires Julia ≥ 1.10. Please follow the download and install instructions at the Julia homepage if you've never used Julia before.

It is advised to run CarboKitten in a dedicated environment under version control. This way, your model runs can be made fully reproducible. Create a directory for you project:

bash mkdir MyCarboKittenProject cd MyCarboKittenProject git init julia

Start Julia, get into Pkg mode by pressing ] and generate a new project file:

juliarepl (@v1.11) pkg> activate . (MyCarboKittenProject) pkg> add CarboKitten

You can run the example model as follows:

julia using CarboKitten CarboKitten.init() # enables progress logging in this session run_model(Model{ALCAP}, ALCAP.Example.INPUT, "example.h5")

If you wish to visualize the generated output, you'll need to install GLMakie first (in package mode):

juliarepl (MyCarboKittenProject) pkg> add GLMakie

Depending on your system, this may take a few minutes to build. After that, you should be able to run the following:

julia using GLMakie using CarboKitten.Visualization summary_plot("example.h5")

This should show a plot very similar to the one above. Don't worry if it takes a while to render. Subsequent runs in the same REPL should be a lot faster!

For more information on running CarboKitten, please read our extensive documentation, including the full tutorial.

Development

[!NOTE] The following instructions are only relevant if you want to develop on CarboKitten itself.

Start the Julia REPL, and get into Pkg mode by pressing ]. You may activate the package environment using activate . and then install the dependencies using instantiate. These steps only need to be run once.

julia pkg> activate . pkg> instantiate

If you want to start a REPL with the correct environment already activated, use the --project=. flag. Use the -t flag to enable processing in multiple threads.

shell julia --project=. -t 4

Examples

You'll get the best experience by running examples from the Julia REPL. There are however also some example scripts that should work stand-alone.

shell julia --project=workenv examples/ca-with-prod.jl This command will write the output in the HDF5 format into the data folder. You can check that output is written there after executing this command.

However, it is more efficient to run them from the REPL. Either run,

shell julia --project=workenv

or start the REPL from VS Code. In the REPL you can run

julia include("examples/ca-with-prod.jl")

After that, you may edit an example and rerun.

Project layout

. ├── data # data files ├── docs # documentation │   ├── make.jl # docs build script │   ├── Manifest.toml # │   ├── Project.toml # dependencies for building docs │   └── src # markdown source for docs ├── entangled.toml # entangled config ├── examples # example scripts ├── ext # visualization extension ├── Makefile # command-line short hands ├── Manifest.toml # ├── Project.toml # project dependencies ├── pyproject.toml # dependencies for running Entangled ├── README.md # ├── src # tangled library source └── test # unit tests

Global dependencies

CarboKitten has some dependencies that are only needed for developing and running examples, but not for using the library on its own. Those are specified in the workenv package. So make sure workenv is activated (Pkg.activate("./workenv")) or

julia pkg> activate workenv pkg> instantiate

We have experimented with using DaemonMode.jl to run Julia scripts from the command line, but found too many issues with unreproducible errors. So for the moment DaemonMode is not used.

Entangled

While developing, you'll need to run the Entangled watch daemon to keep documentation in Markdown and Julia code synchronized. You may install Entangled using pip install entangled-cli, or use the provided Poetry environment in pyproject.toml.

The first time running, from the project root folder:

shell poetry install

Then,

shell poetry run entangled watch

To generate the more expensive figures (actually resulting from simulation etc.), you may run,

shell poetry run brei figures

Documentation

To generate the documentation, run julia.

pkg> activate docs pkg> instantiate julia> include("docs/make.jl")

The example figures are generated seperately (see previous section), and are included in version control.

The most efficient way to serve this documentation and have it update upon changes, is to run LiveServer from the Julia REPL or

shell julia --project=docs -e 'using LiveServer; servedocs()'

The "Documenter could not auto-detect the building environment Skipping deployment." warning is expected; local changes should not trigger the building of new GitHub pages.

Citations

Bibliography is generated from citations in docs/src/ref.bib using DocumenterCitations.jl. Citing a paper from there is done like [Bosscher1992](@cite).

References

Code in this repository is based on

Authors

Lead engineer: Johan Hidding The Netherlands eScience Center email: j.hidding [at] esciencecenter.nl Web page: www.esciencecenter.nl/team/johan-hidding-msc/ ORCID: 0000-0002-7550-1796

Original author: Peter Burgess University of Liverpool Web page: www.liverpool.ac.uk/environmental-sciences/staff/peter-burgess

Project lead: Emilia Jarochowska Utrecht University email: e.b.jarochowska [at] uu.nl Web page: www.uu.nl/staff/EBJarochowska ORCID: 0000-0001-8937-9405

Other team members:

Niklas Hohmann Utrecht University email: n.h.hohmann [at] uu.nl Web page: www.uu.nl/staff/NHohmann ORCID: 0000-0003-1559-1838

Xianyi Liu Utrecht University email: x.liu6 [at] uu.nl Web page: www.uu.nl/staff/XLiu6 ORCID:

Hanno Spreeuw The Netherlands eScience Center email: h.spreeuw [at] esciencecenter.nl Web page: www.esciencecenter.nl/team/dr-hanno-spreeuw/ ORCID: 0000-0002-5057-0322

David De Vleeschouwer Westfälische Wilhelms-Universität Münster Web page: www.uni-muenster.de/GeoPalaeontologie/erdsystemforschung/staff/DeVleeschouwer ORCID: 0000-0002-3323-807X

Copyright

Copyright 2023-2024 The Netherlands eScience Center and Utrecht University

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Funding information

Funded by the European Union (ERC, MindTheGap, StG project no 101041077). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them.

Owner

  • Name: MindTheGap-ERC
  • Login: MindTheGap-ERC
  • Kind: organization

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: CarboKitten.jl
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Johan
    family-names: Hidding
    email: j.hidding@esciencecenter.nl
    affiliation: Netherlands eScience Center
    orcid: 'https://orcid.org/0000-0002-7550-1796'
  - given-names: Emilia
    family-names: Jarochowska
    orcid: 'https://orcid.org/0000-0001-8937-9405'
    affiliation: Utrecht University
    email: e.b.jarochowska@uu.nl
  - given-names: Xianyi
    family-names: Liu
    affiliation: Utrecht University
  - given-names: Peter
    family-names: Burgess
    email: pmb42@liverpool.ac.uk
    affiliation: University of Liverpool
    orcid: 'https://orcid.org/0000-0002-3851-116X'
  - given-names: Niklas
    family-names: Hohmann
    affiliation: Utrecht University
    orcid: 'https://orcid.org/0000-0003-1559-1838'
  - given-names: Hanno
    family-names: Spreeuw
    email: h.spreeuw@esciencecenter.nl
    affiliation: Netherlands eScience Center
    orcid: 'https://orcid.org/0000-0002-5057-0322'
abstract: >-
  A Julia code for modeling the growth and evolution of
  carbonate platforms.
keywords:
  - stratigraphy
  - carbonate platforms
  - earth science
  - modeling
license: Apache-2.0

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 88
  • Total pull requests: 47
  • Average time to close issues: 3 months
  • Average time to close pull requests: 24 days
  • Total issue authors: 8
  • Total pull request authors: 5
  • Average comments per issue: 1.49
  • Average comments per pull request: 1.74
  • Merged pull requests: 32
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 64
  • Pull requests: 35
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 10 days
  • Issue authors: 8
  • Pull request authors: 5
  • Average comments per issue: 1.06
  • Average comments per pull request: 1.11
  • Merged pull requests: 22
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jhidding (45)
  • EmiliaJarochowska (21)
  • xyl96 (9)
  • HannoSpreeuw (7)
  • NiklasHohmann (3)
  • Burgesski (1)
  • qubixes (1)
  • JuliaTagBot (1)
Pull Request Authors
  • jhidding (32)
  • xyl96 (7)
  • HannoSpreeuw (4)
  • EmiliaJarochowska (3)
  • egpbos (1)
Top Labels
Issue Labels
documentation (11) enhancement (11) bug (9) help wanted (1) question (1) priority (1)
Pull Request Labels
documentation (1) enhancement (1)

Packages

  • Total packages: 1
  • Total downloads:
    • julia 2 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
juliahub.com: CarboKitten

Julia implementation of carbonate platform model

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 2 Total
Rankings
Dependent repos count: 3.2%
Downloads: 5.5%
Average: 8.3%
Dependent packages count: 16.3%
Last synced: 6 months ago

Dependencies

.github/workflows/documentation.yml actions
  • actions/checkout v2 composite
  • julia-actions/setup-julia v1 composite