Skip to content

dplPy

The dplPy logo

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

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.