Skip to main content

cropengine is a Python package that streamlines running process-based crop models by automating data preparation, simulation workflows, and result analysis.

Project description

Welcome to cropengine

Open in Colab Open in Binder Open In Studio Lab PyPI Version Downloads Documentation Status License

A Python package for streamlining process-based crop modeling and simulation


Introduction

cropengine is a Python package designed to bridge the gap between geospatial data and process-based crop modeling. It streamlines the complex workflows involved in preparing input data, configuring simulation parameters, and executing crop models for yield prediction and agricultural research.

While traditional crop modeling often requires extensive manual data preparation and file manipulation, cropengine automates these tasks. It is built to integrate seamlessly with geospatial workflows (such as those using geeagri), allowing users to easily drive simulations with site-specific weather, soil, and management data.

cropengine is ideal for:

  • Agronomists and researchers running point-based or spatial crop simulations.
  • Data scientists integrating biophysical models with machine learning pipelines.
  • Developers building agricultural decision support systems.

For a complete list of examples and use cases, visit the notebooks section.


Key Features

  • Automated Data Preparation — Streamline the formatting of weather, soil, and management data into model-ready structures.
  • Simulation Management — Easily configure and run process-based crop simulations with a Pythonic API.
  • Geospatial Integration — Connect directly with satellite and climate data sources to drive simulations for specific locations (lat/lon) or regions.
  • Scalable Workflows — specialized tools for running batch simulations across multiple sites or growing seasons efficiently.
  • Result Analysis — Built-in utilities to parse simulation outputs, calculate yield gaps, and visualize crop growth dynamics over time.
  • Model Agnostic Design — Designed to support various crop modeling engines and frameworks through a unified interface.

Installation

conda create -n cropengine python=3.10
conda activate cropengine
pip install cropengine
# (Optional) Upgrade to the latest version if already installed
pip install --upgrade cropengine

Models

Model ID Model Name Description Production Level Water Balance Nutrient Balance
Wofost72_Phenology WOFOST 7.2 (Phenology Only) Simulates only the phenological development stages of the crop, ignoring biomass growth. Phenology N/A N/A
Wofost72_PP WOFOST 7.2 (Potential Production) Simulates crop growth under potential production conditions (no water or nutrient stress). Potential N/A N/A
Wofost72_WLP_CWB WOFOST 7.2 (Water-Limited) Simulates crop growth limited by water availability using the Classic Water Balance (free drainage). Water-limited Classic N/A
Wofost73_PP WOFOST 7.3 (Potential Production) Includes atmospheric CO₂ response and biomass reallocation under potential conditions. Potential N/A N/A
Wofost73_WLP_CWB WOFOST 7.3 (Water-Limited, Classic) Includes CO₂ response and biomass reallocation under water-limited conditions using the Classic Water Balance. Water-limited Classic N/A

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

cropengine-1.0.2.tar.gz (422.4 kB view details)

Uploaded Source

Built Distribution

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

cropengine-1.0.2-py2.py3-none-any.whl (184.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cropengine-1.0.2.tar.gz.

File metadata

  • Download URL: cropengine-1.0.2.tar.gz
  • Upload date:
  • Size: 422.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for cropengine-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3013865c07c34bfb6b03afad071a7befa0bd4987ff36cbb1691c96c0731ae809
MD5 584ef3e33e61af80a28cecd635ed2dcf
BLAKE2b-256 ae2f4072196e66be0727f972fe7ae6062843ef2403d64f8ce16db7936a1f3bee

See more details on using hashes here.

File details

Details for the file cropengine-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: cropengine-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 184.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for cropengine-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 053685b2d3837095b85cf181e0669af262581d798eef435297ae45759d16356c
MD5 186390e9384ae5727ea9ee4daccb4edc
BLAKE2b-256 7348bcefc0bc0301926bdabb5083e94559da73dc1e79bd85fcbe42cfe6716405

See more details on using hashes here.

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