https://github.com/brmather/slab-dip
Method to calculate slab dip using simple plate kinematic parameters
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 11 DOI reference(s) in README -
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.9%) to scientific vocabulary
Repository
Method to calculate slab dip using simple plate kinematic parameters
Basic Info
- Host: GitHub
- Owner: brmather
- License: gpl-2.0
- Language: Jupyter Notebook
- Default Branch: main
- Size: 92.4 MB
Statistics
- Stars: 7
- Watchers: 1
- Forks: 4
- Open Issues: 0
- Releases: 11
Metadata Files
README.md
Predict slab dip
Predict the dip angle of subducting oceanic lithosphere using simple plate kinematic parameters.
Cite
bib
@article{Mather2023,
title = {Kimberlite Eruptions Driven by Slab Flux and Subduction Angle},
author = {Mather, Ben R and M{\"u}ller, R Dietmar and Alfonso, Christopher P. and Seton, Maria and Wright, Nicky M.},
year = {2023},
journal = {Scientific Reports},
volume = {13},
number = {9216},
pages = {1--12},
doi = {10.1038/s41598-023-36250-w},
}
Mather, B. R., Mller, R. D., Alfonso, C. P., Seton, M., & Wright, N. M. (2023). Kimberlite eruptions driven by slab flux and subduction angle. Scientific Reports, 13(9216), 112. https://doi.org/10.1038/s41598-023-36250-w
Dependencies
To run the Jupyter notebooks some dependencies are required:
- pygplates
- gplately
- PlateTectonicTools
- Scikit-Learn
- cartopy (for mapping)
- netCDF4 (to extract age grids of the seafloor)
Instructions to install these dependencies can be found within each package above. Some conda instructions for setting up a Python environment are here. While these have been written with the Mac M1 architecture in mind, the same instructions should apply equally to other distributions.
Installation
Most of the Jupyter notebooks can be run without installing this package, however, following these installation instructions will make the slab dip prediction tool available system-wide.
1. Using conda (recommended)
You can install the latest stable public release of slabdip and all of its dependencies using conda.
This is the preferred method to install slabdip which downloads binaries from the conda-forge channel.
sh
conda install -c conda-forge slabdip
Creating a new conda environment
We recommend creating a new conda environment inside which to install slabdip. This avoids any potential conflicts in your base Python environment. In the example below we create a new environment called "my-env":
sh
conda create -n my-env
conda activate my-env
conda install -c conda-forge slabdip
my-env needs to be activated whenever you use GPlately: i.e. conda activate my-env.
2. Using pip
From the current directory, run
sh
pip install .
You can also install the most up-to-date version by running
sh
pip install git+https://github.com/brmather/Slab-Dip.git
which will clone the main branch and install the latest version.
Data packages
Plate reconstruction and corresponding age grids of the seafloor are required to predict slab dip. These may be downloaded from https://www.earthbyte.org/gplates-2-3-software-and-data-sets/
The slab dip prediction tool has been tested on Clennett et al. (2020) and Mller et al. (2019) plate reconstructions but should also work fine for all other plate reconstructions.
Usage
A series of Jupyter notebooks document the workflow to calculate plate kinematic and rheological information used to predict slab dip. Skip to notebook 6 to jump straight into the slab dip estimator. The Python snippet below outlines the usage of the SlabDipper object which can be used with little modification to estimate slab dip for a user-defined reconstruction time.
```python
Call GPlately's DataServer object and download the plate model
gdownload = gplately.download.DataServer("Clennett2020") rotationmodel, topologyfeatures, staticpolygons = gdownload.getplatereconstructionfiles()
Use the PlateReconstruction object to create a plate motion model
model = gplately.PlateReconstruction(rotationmodel, topologyfeatures, static_polygons)
Initialise SlabDipper object
dipper = SlabDipper() dipper.model = model
Set the filename (including path) of the seafloor age and spreading rate grids
dipper.setagegridfilename(agegridfilename) dipper.setspreadingrategridfilename(spreadrate_filename)
Estimate slab dip across the globe for a specified reconstruction time
(returned as a Pandas DataFrame)
dataFrame = dipper.tessellateslabdip(0) ```
References
- Clennett, E. J., Sigloch, K., Mihalynuk, M. G., Seton, M., Henderson, M. A., Hosseini, K., et al. (2020). A Quantitative Tomotectonic Plate Reconstruction of Western North America and the Eastern Pacific Basin. Geochemistry, Geophysics, Geosystems, 21(8), 125. https://doi.org/10.1029/2020GC009117
- Mller, R. D., Zahirovic, S., Williams, S. E., Cannon, J., Seton, M., Bower, D. J., et al. (2019). A Global Plate Model Including Lithospheric Deformation Along Major Rifts and Orogens Since the Triassic. Tectonics, 38(6), 18841907. https://doi.org/10.1029/2018TC005462
Owner
- Name: Ben Mather
- Login: brmather
- Kind: user
- Location: Sydney, Australia
- Company: University of Sydney
- Website: https://www.benmather.info
- Twitter: BenRMather
- Repositories: 4
- Profile: https://github.com/brmather
Computational Geophysicist
GitHub Events
Total
- Release event: 1
- Push event: 2
- Create event: 1
Last Year
- Release event: 1
- Push event: 2
- Create event: 1
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Ben Mather | b****1@g****m | 36 |
| Ben Mather | a****t@i****m | 5 |
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- brmather (4)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 20 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 6
- Total maintainers: 1
pypi.org: slabdip
Method to calculate slab dip using simple plate kinematic parameters
- Homepage: https://github.com/brmather/Slab-Dip
- Documentation: https://slabdip.readthedocs.io/
- License: gpl-2.0
-
Latest release: 4.2.2
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v3 composite
- pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite