Skip to main content

AquaCrop-OSPy

Soil-Crop-Water model based on AquaCrop-OS.

checks release last-commit license python-version image Downloads

from aquacrop import AquaCropModel, Soil, Crop, InitialWaterContent
from aquacrop.utils import prepare_weather, get_filepath

weather_file_path = get_filepath('tunis_climate.txt')
model_os = AquaCropModel(
            sim_start_time=f"{1979}/10/01",
            sim_end_time=f"{1985}/05/30",
            weather_df=prepare_weather(weather_file_path),
            soil=Soil(soil_type='SandyLoam'),
            crop=Crop('Wheat', planting_date='10/01'),
            initial_water_content=InitialWaterContent(value=['FC']),
        )
model_os.run_model(till_termination=True)
model_results = model_os.get_simulation_results().head()
print(model_results)

About

AquaCrop-OSPy is an open-source Python crop-water model developed by Tim Foster and others (Tom Kelly and Chris Bowden) within the Agriculture, Water and Climate research group at the University of Manchester. The AquaCrop-OSPy code has been developed with support from the the University of Manchester, Daugherty Water for Food Global Institute, Imperial College London, along with input from the United Nations Food and Agriculture Organization's (FAO) AquaCrop Core Development Group.

Please note that AquaCrop-OSPy is not an official implementation or version of the FAO AquaCrop model. AquaCrop-OSPy currently mirrors most features available in version 7.1 of the official FAO AquaCrop model, with the exception of routines for salinity and fertility stress, weed management, and perennial herbaceous crops that are still to be developed. AquaCrop-OSPy has been rigorously tested to verify that the model reproduces accurately the calculations and outputs performed by the official FAO AquaCrop model. However, some bugs or errors may still be found. Please use the Issues tab to raise any issues encountered with the AquaCrop-OSPy. More details about the official FAO AquaCrop model on which AquaCrop-OSPy is based can be obtained here .

For further information about the AquaCrop-OSPy model, you can consult the accompanying open-access journal paper on the code here . There is also an extensive documentation for the model, along with a series of tutorials to help you get started with the Python code (see Quickstart below). AquaCrop-OSPy builds upon an earlier version of code developed in Matlab, more information about which can be found here .

More information about the official FAO AquaCrop model on which AquaCrop-OSPy is based can be obtained here , where you can also access the official raw source AquaCrop code, compiled executables, and most recent code releases that are developed and provided by FAO.

Install

pip install aquacrop

Quickstart

A number of tutorials has been created (more to be added in future) to help users jump straight in and run their first simulation. Run these tutorials instantly on Google Colab:

  1. Running an AquaCrop-OSPy model
  2. Estimation of irrigation water demands
  3. Optimisation of irrigation management strategies
  4. Projection of climate change impacts

Metadata

Release files for aquacrop 3.1.2

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

Source distribution (sdist)

Source distribution for aquacrop 3.1.2
File Size Uploaded Provenance Actions
aquacrop-3.1.2.tar.gz 10.6 MB Without provenance Details for aquacrop-3.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 21.3 MB

Release files / aquacrop-3.1.2.tar.gz

Download URL aquacrop-3.1.2.tar.gz
Size 10.6 MB
Tags Source
SHA-256 checksum
How to use checksums
1f27de9143b0b5bfdf11d36be61baa2c285b1b7062f757b837de266ff2b38942
BLAKE2b-256 checksum
How to use checksums
2cb631a06a5bc884fcb0d8c2ad1331f1371b85c641862d815bf3614053c34e41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / aquacrop-3.1.2-py3-none-any.whl

Download URL aquacrop-3.1.2-py3-none-any.whl
Size 10.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9c5b424f5d14b90bbee96aad0647aad3df9eb186c324a29f2a1308f132f488b5
BLAKE2b-256 checksum
How to use checksums
a3188f621837cf9f51af5a35522fdc9bbb83b6a0f2bf57e27679a2a08a69f368
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for aquacrop 3.1.2

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

3.1.2 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