dplPy¶

dplPy is the Dendrochronology Program Library in Python. It brings the methods of dplR to Python and works on pandas data frames: read and write ring-width files, summarize, detrend, build chronologies, crossdate, date floating series, and do regional curve standardization.
dplPy is in prerelease, at version 0.8.0 and heading for 1.0. It is ready to use, and function names and arguments can still change before 1.0.
dplPy documentation Source on GitHub
Install¶
dplPy needs Python 3.10 or later.
pip install dplpy
The installation guide covers setting up Python and an environment if you are starting from nothing.
A First Chronology¶
import dplpy as dpl
rwl = dpl.readers("ca533.rwl", header=True) # ring widths, one column per series
dpl.stats(rwl) # summary statistics for each series
rwi = dpl.detrend(rwl, fit="spline") # ring-width indices
crn = dpl.chron(rwi) # the chronology
The quickstart takes this file from raw ring widths to a crossdated chronology, with the output of every step.
Learn¶
- The dplPy documentation has a guide for each task and a reference for every function.
- Coming from dplR is for people who already know the R package.
- Fidelity and departures says where dplPy matches dplR and the Fortran programs, how that is checked, and where it differs on purpose.
- The notebooks on this site are worked examples you can download and run: an introduction, a floating chronology, a bristlecone pine collection, and pulling data from the ITRDB.
Bugs and Requests¶
dplPy is young and gets better when people break it. Report a bug or ask for a feature on the dplPy issue tracker.