Skip to main content

Python PyPI - Version GitHub License Documentation PyPI Downloads DOI

diive is being prepared for the v1.0 release.

Time series processing for ecosystem data

diive is a Python library for processing time series of ecosystem measurements. The ETH Grassland Sciences group developed it for Swiss FluxNet, mainly to post-process eddy covariance fluxes: quality control, gap-filling, flux partitioning and plots.

diive can be used in two ways:

  • As a library in your own Python code: import diive as dv.
  • As a desktop app (diive-gui) for interactive work without writing code. For Windows, each release includes a ready-to-run version that needs no Python.

diive works with averaged data, for example 30-minute values. For raw high-frequency (10 or 20 Hz) eddy covariance data, such as wind rotation, flux detection limits and time lags, use dyco.

Installation | Documentation | Project overview | Examples | GUI manual | CHANGELOG | Releases


Quick start

After installing diive, load the bundled example data and plot it:

import diive as dv

df = dv.load_exampledata_parquet()  # bundled multi-year record of 30-minute eddy covariance data

dv.plotting.TimeSeries(series=df['NEE_CUT_REF_f']).plot()
dv.plotting.HeatmapDateTime(series=df['NEE_CUT_REF_f']).plot()

Every plot works in two steps: the class takes the data, and .plot() takes the styling.

The cookbook continues with six short workflows: load data, clean timestamps, remove outliers, gap-fill, run the flux post-processing chain and make plots.

Library overview

import diive as dv gives access to ten namespaces, one per topic. Each row links to runnable examples:

Namespace Contents Examples
dv.plotting 18 plot types: time series, heatmaps, diel cycle, cumulative, ridgeline, scatter, hexbin, wind rose, tree ring, 3-D surface and more visualization/
dv.gapfilling RandomForestTS, XGBoostTS, SWINGapFillerXGBoost, FluxMDS, linear interpolation, long-term variants, FeatureEngineer gapfilling/
dv.flux Flux post-processing chain (Levels 2 to 4.2), NEE partitioning, u* filtering, uncertainty flux/
dv.outliers Nine detection methods, including Hampel, z-score variants, local SD, local outlier factor and absolute limits outlier_detection/
dv.corrections Offset corrections (measurement, radiation, relative humidity, wind direction), thresholds, missing values corrections/
dv.qaqc FlagQCF overall quality flag, EddyPro flags, meteo screening qaqc/
dv.analysis Seasonal-trend decomposition, lagged correlation, grid aggregation, gap statistics, spectral analysis analysis/
dv.times Timestamp checks and fixes, time resolution detection, resampling, date ranges times/
dv.variables Derived variables (VPD, potential radiation, day/night flags, air properties), feature engineering features/
dv.events Event markers with dates, 0/1 flag columns, plot overlays events/

Reading and writing files is available directly on dv (dv.load_parquet, dv.save_parquet, dv.ReadFileType), see io/. The full list of names is in diive.__all__ and in the __all__ of each namespace.

Main features

Flux post-processing chain. Takes fluxes from quality flags through gap-filling to NEE partitioning (Levels 2 to 4.2), following the Swiss FluxNet processing chain. run_chain(data, config) runs the standard workflow. The levels can also be called one by one, with full control over each test, model setting and flag. Examples: examples/flux/postprocessingchain/

NEE partitioning. Four methods, each ported from its reference code and checked against it: nighttime (Reichstein et al. 2005) and daytime (Lasslop et al. 2010), each as in ONEFlux and as in REddyProc. PartitioningNEE picks one with method='nighttime'|'daytime' and mode='oneflux'|'reddyproc'. The default is ONEFlux, the method used by ICOS. Each method writes columns with its own suffix, so all four can sit in one table. Examples: examples/flux/partitioning/

Gap-filling. Random Forest and XGBoost models that use SHAP values to drop unimportant features, and an MDS gap-filler that needs no training. By default, MDS follows the ONEFlux rules and adds the symmetric mean of Vekuri et al. (2023). Two more modes reproduce the MDS of ONEFlux and of REddyProc. A feature engineer with 8 stages builds the inputs for the machine-learning models. Examples: examples/gapfilling/

Desktop app. Provides the library functions in an interactive interface: plotting, data cleaning, gap-filling and flux tabs, a guided post-processing chain, metadata for each variable with its processing history, and project folders (.diive) that can be moved to another computer. On Windows, it also runs without Python, see Windows app. Manual: GUI manual

The diive desktop app showing the Overview tab: variable list, summary statistics, and linked time series, heatmap, cumulative, diel cycle and distribution panels

The Overview tab in diive-gui v0.91.0 with ten years of half-hourly data. Selecting a variable on the left redraws all panels. Zooming into one of the date panels updates the statistics and panels for the visible period.

Documentation

Where What
diive.readthedocs.io Online documentation: API reference and example gallery
OVERVIEW.md How library, desktop app, docs and packaging fit together
examples/COOKBOOK.md Six short workflows, the recommended starting point
examples/CATALOG.md All 113 examples, sorted by task
examples/EXAMPLE_DATASET.md The bundled example dataset (37 variables)
diive/gui/MANUAL.md User manual of the desktop app
diive/gui/README.md How the desktop app is built, for developers
notebooks/README.md Jupyter notebooks
packaging/README.md Building the standalone Windows app
CONTRIBUTING.md Development setup, coding standards, testing
CHANGELOG.md Version history

The examples are plain scripts in the repository (see the development setup). The online example gallery also offers each example as a Python file and as a Jupyter notebook to download. In a clone, run one with python, or with uv run python in a uv setup:

python examples/visualization/plot_heatmap_datetime_basic.py
uv run python examples/gapfilling/gapfill_randomforest.py

Installation

diive needs Python 3.12 or 3.13. For new Python users, the recommended way is to install Miniforge first. On Windows, open Miniforge Prompt from the Start menu. On macOS and Linux, open a terminal.

Library

conda create -n diive python=3.12
conda activate diive
python -m pip install diive

Conda creates an environment named diive with its own Python, and pip installs diive from PyPI into it. In a new terminal, run conda activate diive first.

Library and desktop app

conda create -n diive python=3.12
conda activate diive
python -m pip install "diive[gui]"

Start the desktop app with diive-gui. The desktop app is a large download. Keep the double quotes around "diive[gui]", because some shells need them.

Windows app (no Python needed)

Each release includes the desktop app for Windows as a zip file (diive-gui-...-win64.zip under Assets). Download it, unzip it and start diive-gui.exe in the unzipped folder. Nothing else needs to be installed. Windows may show a SmartScreen warning the first time, because the app is not signed. Click More info, then Run anyway.

The app contains the same functions as diive[gui]. To use diive in your own Python code, install the library as described above.

More options

The installation guide covers the development setup, updates, Jupyter, the newest code from GitHub and solutions to common problems.


Citation

Cite diive with the DOI 10.5281/zenodo.10884017. This DOI always points to the latest release, so add the version number you used:

@software{diive2026,
  author = {Hörtnagl, Lukas},
  title = {diive: Python library for time series processing},
  version = {0.92.0},
  year = {2026},
  doi = {10.5281/zenodo.10884017}
}

Replace version and year with the release you used.

License

diive is released under the GNU General Public License v3.0.

Metadata

Release files for diive 0.92.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 diive 0.92.0
File Size Uploaded Provenance Actions
diive-0.92.0.tar.gz 35.7 MB With provenance Details for diive-0.92.0.tar.gz

Built distribution (wheel)

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

Total release size: 70.3 MB

Release files / diive-0.92.0.tar.gz

Download URL diive-0.92.0.tar.gz
Size 35.7 MB
Tags Source
SHA-256 checksum
How to use checksums
fdc792c592c2b6b2bf5bb5676bb88be14d7ccd1f7ef6bfa926bcba768874303f
BLAKE2b-256 checksum
How to use checksums
aa4eb82299bcf730a6a140b7ec444a8b5c0a6856cce9fe697d66fae935d6f3c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 20, 2026.

Transparency log

Release files / diive-0.92.0-py3-none-any.whl

Download URL diive-0.92.0-py3-none-any.whl
Size 34.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9c580fd0063c4108986c72b397e014d8d5f996ce86b269fb90e240c4101d14ef
BLAKE2b-256 checksum
How to use checksums
c4acf4e8a57d4ffb1bdb301ea8e10a89c2c0fda94c55315ed64f45eec2132def
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 20, 2026.

Transparency log

Security for diive 0.92.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for diive-0.92.0.tar.gz

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 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.92.0 This release

2 release files Full provenance

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