Skip to main content

A Python package for paleoclimate data analysis

Project description

PyPI version PyPI license DOI NSF-1541029

Python Package for the Analysis of Paleoclimate Data

Paleoclimate data, whether from observations or model simulations, offer unique challenges to the analyst, as they usually come in the form of timeseries with missing values and age uncertainties, which trip up off-the-shelf methods. Pyleoclim is a Python package primarily geared towards the analysis and visualization of such timeseries. The package includes several low-level methods to deal with these issues under the hood, leaving paleoscientists to interact with intuitive, high-level analysis and plotting methods that support publication-quality scientific workflows.

There are many entry points to Pyleoclim, thanks to its underlying data structures. The package leverages the Linked Paleo Data (LiPD) standard container and its associated utilities. The package is aware of age ensembles stored via LiPD and uses them for time-uncertain analyses, very much like its R sidekick, GeoChronR.

LiPD is not an obligatory entry point to Pyleoclim. Low-level modules work on NumPy arrays or Pandas dataframes, so most Pyleoclim timeseries analysis functionalities can apply to these more common types as well, including those generated by numerical models (via xarray). This makes the package suitable for rigorous and efficient model-data comparisons, like this one.

We've worked hard to make Pyleoclim accessible to a wide variety of users, from establisher researchers to high-school students, and from seasoned Pythonistas to first-time programmers. A progressive introduction to the package is available at PyleoTutorials. Examples of scientific use are given this paper. A growing collection of research-grade workflows using Pyleoclim and the LinkedEarth research ecosystem are available as Jupyter notebooks on paleoBooks, with video tutorials on the LinkedEarth YouTube channel. Python novices are encouraged to follow these self-paced tutorials before trying Pyleoclim.

Science-based training materials are also available from the paleoHackathon repository. You can run these training notebooks at any time on our research hub. We also run live training workshops every so often. Follow us on Twitter, or join our Discourse Forum for more information.

Versions

See our releases page for details on what's included in each version.

Documentation

Online documentation is available through readthedocs.

Dependencies

pyleoclim only supports Python 3.9, 3.10

Installation

The latest stable release is available through Pypi. We recommend using Anaconda or Miniconda with a dedicated environment. Full installation instructions are available in the package documentation

Citation

If you use our code in any way, please consider adding these citations to your publications:

  • Khider, D., Emile-Geay, J., Zhu, F., James, A., Landers, J., Ratnakar, V., & Gil, Y. (2022). Pyleoclim: Paleoclimate timeseries analysis and visualization with Python. Paleoceanography and Paleoclimatology, 37, e2022PA004509. https://doi.org/10.1029/2022PA004509
  • Khider, Deborah, Emile-Geay, Julien, Zhu, Feng, James, Alexander, Landers, Jordan, Kwan, Myron, & Athreya, Pratheek. (2022). Pyleoclim: A Python package for the analysis and visualization of paleoclimate data (v0.9.1). Zenodo. https://doi.org/10.5281/zenodo.7523617

Development

Pyleoclim development takes place on GitHub: https://github.com/LinkedEarth/Pyleoclim_util

Please submit any reproducible bugs you encounter to the issue tracker. For usage questions, please use Discourse.

License

The project is licensed under the GNU Public License. Please refer to the file call license. If you use the code in publications, please credit the work using the citation file.

Disclaimer

This material is based upon work supported by the National Science Foundation under Grant Number ICER-1541029. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the investigators and do not necessarily reflect the views of the National Science Foundation.

This research is funded in part by JP Morgan Chase & Co. Any views or opinions expressed herein are solely those of the authors listed, and may differ from the views and opinions expressed by JP Morgan Chase & Co. or its affilitates. This material is not a product of the Research Department of J.P. Morgan Securities LLC. This material should not be construed as an individual recommendation of for any particular client and is not intended as a recommendation of particular securities, financial instruments or strategies for a particular client. This material does not constitute a solicitation or offer in any jurisdiction.

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

pyleoclim-0.14.0.tar.gz (576.9 kB view hashes)

Uploaded source

Built Distribution

pyleoclim-0.14.0-py3-none-any.whl (605.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page