Skip to main content
gwtf logo

gwtf: Groundwater Table Fluctuation Method in Python

PyPI version GitHub License DOI Tests

What is gwtf?

gwtf is an open-source Python package for estimating and analyzing groundwater recharge using the Water Table Fluctuation (WTF) method. The package provides tools for event extraction, recharge estimation, and uncertainty analysis, all in a user-friendly and extensible framework.


Code Example

import gwtf

wt = pd.read_csv("head.csv", parse_dates=["date"], index_col="date")

ml = wtf.Model(wt, name="Wagna", mcr=wtf.MCR())
ml.mcr.fit_mcr(wt)

r2= ml.estimate_recharge(rise_rule="rises", sy=0.15)
r.resample("YE").sum().plot(kind="bar", figsize=(10, 2))

Documentation & Examples


Get in Touch


Quick Installation Guide

gwtf requires Python 3.9 or higher. We recommend using Anaconda for easy management of dependencies, but any other Python distribution should work. Check pyproject.toml for the dependencies on other Python packages.

Stable version

pip install gwtf

Update

pip install gwtf --upgrade

Development version

pip install git+https://github.com/raoulcollenteur/gwtf.git@main#egg=gwtf


How to cite gwtf

If you use gwtf in your research, please cite:

Collenteur, R.A. (2025). gwtf: Python implementation of the Water Table Fluctuation (WTF) Method. Zenodo. https://doi.org/10.5281/zenodo.XXXXXXX


License

gwtf is licensed under the GNU General Public License. See the LICENSE file for details.

Metadata

Release files for gwtf 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gwtf 0.2.0
File Size Uploaded
gwtf-0.2.0.tar.gz 47.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gwtf 0.2.0
File Interpreter ABI Platform
gwtf-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 79.7 kB

Release files / gwtf-0.2.0.tar.gz

Download URL gwtf-0.2.0.tar.gz
Size 47.0 kB
Tags Source
SHA-256 checksum
How to use checksums
092287f55d9fb8cb0b9c283955abf64c40cd39f9a99d533f9afef8192aa6651d
BLAKE2b-256 checksum
How to use checksums
af43c64ec8b9a09a8bbe0f8f8c664e8a6f3ce1ff6955610de120923b46aca3fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2025.

Transparency log

Release files / gwtf-0.2.0-py3-none-any.whl

Download URL gwtf-0.2.0-py3-none-any.whl
Size 32.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4b588d8524ff4363075141325b75c33c54ae6f233f979d3f970191d3f5527e7
BLAKE2b-256 checksum
How to use checksums
f25820a40dc2f7f7a4022aae91e93db1da0c1fc98e72e10c4d327dda1b0bf898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page