Skip to main content

GPP Prediction

A Python package for predicting gross primary production (GPP) in ecological systems.

Installation

pip install gpp-prediction

Features

  • Convert solar radiation to photosynthetically active radiation (PAR)
  • Calculate GPP using environmental parameters
  • Handle various input formats (single values, arrays, pandas Series)

Usage

import pandas as pd
import numpy as np
from gpp_prediction import swrad2par, calc_gpp

# Convert solar radiation to PAR
swrad = 0.5  # kW m^-2
par = swrad2par(swrad)  # kJ m^-2 day^-1

# Sample data
data = {
    'swrad': [0.4, 0.5, 0.6],
    'fapar': [0.6, 0.7, 0.8],
    'tmin': [5, 8, 10],
    'vpd': [0.5, 1.0, 1.5]
}
df = pd.DataFrame(data)

# Calculate PAR from solar radiation
df['par'] = swrad2par(df['swrad'])

# Model parameters
params = {
    'eps_max': 2.5,
    'tmin_min': 0,
    'tmin_max': 12,
    'vpd_min': 0.2,
    'vpd_max': 2.0
}

# Calculate GPP
df['gpp'] = calc_gpp(
    df['par'],
    df['fapar'],
    df['tmin'],
    df['vpd'],
    **params
)

print(df)

License

This project is licensed under the MIT License

Metadata

Release files for gpp-prediction 0.1.5

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

Source distribution (sdist)

Source distribution for gpp-prediction 0.1.5
File Size Uploaded Provenance Actions
gpp_prediction-0.1.5.tar.gz 4.1 kB Without provenance Details for gpp_prediction-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gpp-prediction 0.1.5
File Interpreter ABI Platform Actions
gpp_prediction-0.1.5-py3-none-any.whl Python 3 none any Details for gpp_prediction-0.1.5-py3-none-any.whl

Total release size: 8.8 kB

Release files / gpp_prediction-0.1.5.tar.gz

Download URL gpp_prediction-0.1.5.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9e852774c9f8fa4016698d9495ae6bd5ceacac7d563ec6103e77690cebd1f76c
BLAKE2b-256 checksum
How to use checksums
498f4469f767f7e96df31901fa1972b71e6f25fab0693146faada0f8e5b97b7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / gpp_prediction-0.1.5-py3-none-any.whl

Download URL gpp_prediction-0.1.5-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d621c5d0bd50b071cbbd1e9ecbaf1e1893f0a42ea34ac36b4a52bf71ea106eb
BLAKE2b-256 checksum
How to use checksums
64359dfec21825455c24709a4218f93e6a39b68b625b6145bc214161aed2b4f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Security for gpp-prediction 0.1.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1.5 This release

2 release files No 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