Skip to main content

Automated whole-tree chamber workflow for oil-palm ecophysiology — QC, flux calculation, science validation.

Project description

palmwtc

Automated whole-tree chamber workflow for oil-palm ecophysiology.

PyPI Python License: MIT CI DOI

palmwtc is the data-processing and analysis pipeline for the first automated whole-tree chamber (WTC) sized to enclose individual oil palm trees, deployed at the LIBZ field site (Riau, Indonesia) and instrumented with LI-COR LI-850 gas analyzers. It transforms raw sensor cycles into validated CO₂ and H₂O fluxes, applies multi-stage quality control, and produces inputs for the XPalm digital-twin calibration pipeline.

What it does

raw chamber cycles  ──►  QC (rules + ML + breakpoints)  ──►  flux calculation  ──►  science validation
        │                                                                                  │
        └── 30-min weather + soil + tree biophysics ──┬───────────────────────────────────►┘
                                                       └── high-confidence calibration windows

End-to-end run on the bundled synthetic sample:

pip install palmwtc
palmwtc run            # uses bundled sample if no PALMWTC_DATA_DIR set

For your own data:

export PALMWTC_DATA_DIR=/path/to/your/chamber/data
palmwtc run --skip 022 025          # mirrors the original notebook-runner CLI
palmwtc run --notebooks             # papermill mode, produces HTML reports

Install

pip install palmwtc                 # core only
pip install 'palmwtc[ml]'           # + scikit-learn IsolationForest QC
pip install 'palmwtc[interactive]'  # + ipywidgets / anywidget for Jupyter dashboards
pip install 'palmwtc[gpu]'          # + torch (Apple-Silicon MPS / CUDA)
pip install 'palmwtc[all]'          # everything

Requires Python 3.11–3.13.

Library use

from palmwtc.config import DataPaths
from palmwtc.qc import QCProcessor
from palmwtc.flux import calculate_flux_cycles

paths = DataPaths.resolve()                     # layered: CLI → env → yaml → sample
qc_result = QCProcessor(paths).run("CO2_C1")
flux = calculate_flux_cycles(qc_result.data)

Full API reference: adisapoetro.github.io/palmwtc/api/

Citation

If you use palmwtc in scientific work, please cite the Zenodo DOI. The concept DOI 10.5281/zenodo.19680893 always resolves to the latest version; to cite a specific release, use its own version DOI (visible on the Zenodo recordVersions panel).

@software{adisaputro_palmwtc_2026,
  author  = {Adisaputro, Didi},
  title   = {palmwtc: Automated whole-tree chamber workflow for oil-palm ecophysiology},
  year    = {2026},
  version = {0.2.0},
  doi     = {10.5281/zenodo.19680893},
  url     = {https://github.com/adisapoetro/palmwtc},
}

See CITATION.cff for machine-readable metadata.

Background

Most ecosystem-scale flux measurements over oil-palm plantations use eddy covariance, which integrates over hectares of canopy and cannot resolve single-tree behaviour. palmwtc is built around a different instrument: an automated whole-tree chamber, sized and ventilated to enclose an individual mature oil palm, with an LI-COR LI-850 gas analyzer cycling open and closed on a programmed schedule. This is, to our knowledge, the first WTC deployment for oil palm — the WTC method was previously applied to temperate broadleaf species (Medlyn et al. 2016).

Contributing

See CONTRIBUTING.md. Bug reports and feature requests: github.com/adisapoetro/palmwtc/issues.

License

MIT — see LICENSE.

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

palmwtc-0.2.4.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

palmwtc-0.2.4-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file palmwtc-0.2.4.tar.gz.

File metadata

  • Download URL: palmwtc-0.2.4.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for palmwtc-0.2.4.tar.gz
Algorithm Hash digest
SHA256 5ed928e7f5b7c16b2e6cfb0fd23d99b8b40192c790fc7f0b2a994a61a2bddd2b
MD5 6ebc5f2d0fd2e76e1255e47863b66e92
BLAKE2b-256 0893801c1eebbc1a877f46772cd6328e2e1a16f73e380efef131042745b79369

See more details on using hashes here.

Provenance

The following attestation bundles were made for palmwtc-0.2.4.tar.gz:

Publisher: release.yml on adisapoetro/palmwtc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file palmwtc-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: palmwtc-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for palmwtc-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2719d12afbec100586d2fb267dad4fa3b40c6c4a45d0fdc7c724d45136c5cacb
MD5 cf8c38a5c1ccf846bdac0d286b5a0bd3
BLAKE2b-256 ef741d98ede8b2a6ea52661d15438008b4935af512fe4c287e80919cfe1ad25a

See more details on using hashes here.

Provenance

The following attestation bundles were made for palmwtc-0.2.4-py3-none-any.whl:

Publisher: release.yml on adisapoetro/palmwtc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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