Skip to main content

Thermochronology for geodynamic models

Project description

GDTchron Logo

GDTchron: Geodynamic Thermochronology

License: MIT Binder Online Documentation

About

GDTchron is a Python package for using the outputs of geodynamic models to predict thermochronometric ages.

Current authors:

  • Dylan Vasey
  • Peter Scully
  • John Naliboff

Source code: https://github.com/dyvasey/gdtchron

Online documentation: https://gdtchron.readthedocs.io/en/latest/

The documentation consists of Jupyter Notebooks demonstrating use of the code and the full API for the code.

Installation

The latest release of GDTchron can be installed from PyPI or conda-forge using pip or conda as package managers:

# PyPI
pip install gdtchron
# conda-forge
conda install -c conda-forge gdtchron

For the latest development version, you can clone and install the GitHub repository with the source code. This repository also includes all the tests and Jupyter Notebooks.

git clone https://github.com/dyvasey/gdtchron.git
cd gdtchron
pip install .

Once installed, GDTchron can be used like any other Python package in scripts or Jupyter Notebooks.

Running GDTchron with Binder

Clicking the Binder badge at the top of this README will launch an interactive JupyterLab environment hosted by Binder with GDTchron installed. This is a good way to try out the functionality of GDTchron without needing to deal with a local Python installation. Note that the Binder environment does not have ASPECT installed.

Running GDTchron with ASPECT via Docker

Included in this repository is a Dockerfile allowing you to create an interactive JupyterLab environment that can run both ASPECT and GDTchron in Jupyter Notebooks. This environment allows you to fully run an accompanying ASPECT uplift model, process it using GDTChron, and plot the results using the Jupyter Notebooks in the aspect directory. Note that fully replicating this process may take several hours.

See here for how to install Docker: https://docs.docker.com/get-started/

To build the environment, first ensure Docker is running. Then, from the repository root directory run:

docker build -f aspect/Dockerfile -t aspect-docker .

This may take a few minutes. To then run the environment:

docker run --rm --name aspect-docker -d -p 8888:8888 aspect-docker

The build and run commands are also provided in the shell script aspect/aspect_docker.sh

Once the environment is running, navigate to http://localhost:8888 in your browser.

To stop the environment, run:

docker stop aspect-docker

Note that the --rm flag in docker run means that the environment (including all files saved in it) will be removed once stopped (including if the session running the environment is ended). You can make it possible to restart the environment by omitting this flag, but this means that you will have to remove the environment manually when you are done with it.

To replicate the ASPECT uplift model and its results, run in order run_aspect_model.ipynb, process_model.ipynb, and figures_model.ipynb. The outputs of these are currently saved in the notebooks and viewable in the documentation.

Jupyter Notebooks

There are additional Jupyter Notebooks in the notebooks directory and displayed in the documentation demonstrating the functionality of GDTchron. Some of these notebooks can be directly replicated with just a GDTchron install (or in the Binder environment), whereas others depend on local output model files that are too large to include in this repository and are displayed as demonstrations only.

Fully Reproducible with GDTchron Install or Binder

  • tchron_demo.ipynb
  • scaling_test.ipynb

Not Reproducible without Large Size Local Files

  • process_riftinversion.ipynb
  • figure_riftinversion.ipynb
  • interpolation_comparison.ipynb

The ASPECT parameter files needed to reproduce the rift inversion model for these notebooks are available in the ri_prms directory.

Contributing to GDTchron

GDTchron is designed to be a community-driven, open-source Python package. If you have code you would like to contribute, please see the contributing guidelines.

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

gdtchron-0.1.0.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

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

gdtchron-0.1.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gdtchron-0.1.0.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.12 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for gdtchron-0.1.0.tar.gz
Algorithm Hash digest
SHA256 85c369d35184474b398fa5fb64fc02360137bae954f7c911576a1002d60b16ba
MD5 a6e06f25f49e5a589114071fc3d91eab
BLAKE2b-256 b57c4cb1d4ebeee286d39bbcd2337348e88db0f8c55511a353d7f47d22396cbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gdtchron-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.12 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for gdtchron-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9bb89e8f49fd3d94d55a2279c463e7e1d0e874790ba9fc3f35a9e8a72aefd358
MD5 6095ebd5ff376b14f0c2ab2e3ffdff1e
BLAKE2b-256 282f52997c3728145e2c2106924359a15e993d9b4524b242d7fcfa4475fc65e5

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