Skip to main content

Plots thermochronometer ages and closure temperatures

Project description

Tcplotter code description and instructions for use

DOI Anaconda-Server Badge Documentation Status License: MIT Binder

Tcplotter is a Python package for creating and customizing thermochronometer age and closure temperature plots presented in the article Short communication: Modelling competing effects of cooling rate, grain size and radiation damage in low temperature thermochronometers by D. Whipp, D. Kellett, I. Coutand, and R. Ketcham. The code is designed to be easy to use to either reproduce plots from the article or customize the plots for your own use. Below you will find some essential details about using the code and detailed documentation can be found on the tcplotter documentation site.

Getting started

The easiest way to get started using Tcplotter is by using Binder either with the link here or by clicking on the Binder button above. This will open an interactive web interface to the code where you can see how it works and even create your own plots.

Installation

Tcplotter can be installed in your Python environment using pip.

pip install tcplotter

You can also find installation instructions on the Tcplotter documentation page.

Note: In order for Tcplotter to work properly you will also need to install the thermochronometer age prediction programs available in the Tccore package.

Usage

Tcplotter can be used either as a function in a Python script or interpreter, or from the command line. The four main Tcplotter functions/command-line tools are:

  • time_vs_temp()
  • eu_vs_radius()
  • rate_vs_radius_eu()
  • rate_vs_age_tc()

Brief examples of possible usage for both cases can be found below.

Usage in a Python script or interpreter

Assuming you are working in Binder or have installed tcplotter locally, functions available in Tcplotter can be imported as follows:

from tcplotter import time_vs_temp, eu_vs_radius, rate_vs_radius_eu, rate_vs_age_tc

Once imported, you can use functions as shown below:

eu_versus_radius(save_plot=True)

You can find more information about the function parameters using the help() function:

help(eu_vs_radius)

Command-line usage

Command-line usage is similar to that for use in a Python script, except that the underscores in the function names have been replaced by hyphens. For example, again assuming you have installed tcplotter locally, you can type the following to use the eu_vs_radius() function:

eu-vs-radius --save-plot

To find more information about options available for command-line use you can include the --help or -h flags.

eu-vs-radius -h

Attribution

How to cite the code

When including plots generated using Tcplotter in publications or presentations, please cite the following:

  • Whipp, D. M. and Ketcham, R. A.: tcplotter: a Python package for creating and customizing thermochronometer age and closure temperature plots, Zenodo [code], https://doi.org/10.5281/zenodo.5958939, 2022.

How to cite the paper

You're also welcome to cite the manuscript related to Tcplotter when referencing ideas from the article:

  • Whipp, D. M., Kellett, D. A., Coutand, I., and Ketcham, R. A.: Short communication: Modeling competing effects of cooling rate, grain size, and radiation damage in low-temperature thermochronometers, Geochronology, 4, 143–152, https://doi.org/10.5194/gchron-4-143-2022, 2022.

How to cite related articles

The age prediction software used for calculating apatite and zircon (U-Th)/He and apatite fission-track ages was written by Richard Ketcham at the University of Texas, USA. Results published using this software should also cite the articles below:

  • Ketcham, R. A., Donelick, R. A., & Carlson, W. D.: Variability of apatite fission-track annealing kinetics III: Extrapolation to geological time scales. American Mineralogist, 84, 1235-1255, doi: 10.2138/am-1999-0903, 1999.

  • Ketcham, R. A., Mora, A., and Parra, M.: Deciphering exhumation and burial history with multi-sample down-well thermochronometric inverse modelling, Basin Res., 30, 48-64, 10.1111/bre.12207, 2018.

License

The Tcplotter software is licensed under an MIT License: Tcplotter software license

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

tcplotter-0.4.0.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

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

tcplotter-0.4.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file tcplotter-0.4.0.tar.gz.

File metadata

  • Download URL: tcplotter-0.4.0.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.14.2 HTTPX/0.28.1

File hashes

Hashes for tcplotter-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fb443391b7a0dd72d295a5b8bb0789a96c40b5659e05a702f85ea606de5795aa
MD5 24a419ac218f041ba3a0afe2b1802e04
BLAKE2b-256 55ad8416f1a370bfd0367a8ae54a9c1301d776313ae6e27b53f98f458dcaf40b

See more details on using hashes here.

File details

Details for the file tcplotter-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: tcplotter-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.14.2 HTTPX/0.28.1

File hashes

Hashes for tcplotter-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ee57a39e01112275c656086bec6458ac93c3b6d77927cfa12aebf6783b222c1
MD5 ec784e54fa5e8a893773a11124cf33cf
BLAKE2b-256 d3252dd77e77f75a1361f4a82cd715ced65e9f2a624020d5e1227419936b66d9

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