Skip to main content

Agronomic Model

Project description

AquaCrop-OSPy

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

checks release last-commit license python-version

from aquacrop.core import AquaCropModel, get_filepath, prepare_weather
from aquacrop.entities.soil import Soil
from aquacrop.entities.crop import  Crop
from aquacrop.entities.inititalWaterContent import InitialWaterContent

weather_file_path = get_filepath('tunis_climate.txt')
modelOs = AquaCropModel(
            sim_start_time=f"{1979}/10/01",
            sim_end_time=f"{1985}/05/30",
            weather_df=prepare_weather(weather_file_path),
            soil=Soil(soilType='SandyLoam'),
            crop=Crop('Wheat', planting_date='10/01'),
            initial_water_content=InitialWaterContent(value=['FC']),
        )
modelOs.initialize()
modelOs.step(till_termination=True)
modelOsResult = modelOs.Outputs.final_stats.head()
print(modelOsResult)

ABOUT

AquaCrop-OSPy is a python implementation of the popular crop-water model AquaCrop, built from the AquaCrop-OS source code.

AquaCrop-OS, an open source version of FAO’s multi-crop model, was released in August 2016 and is the result of collaboration between researchers at the University of Manchester, Water for Food Global Institute, U.N. Food and Agriculture Organization, and Imperial College London.

AquaCrop-OSPy has been designed in way that users can conduct cutting edge research with only basic python experience. In particular for the design and testing of irrigation stratgeies.

Open access journal article here

It is built upon the AquaCropOS crop-growth model written in Matlab ( paper , webpage ) which itself itself is based on the FAO AquaCrop model Webpage . Comparisons to both base models are shown here.

A forum has also been created so that users of AquaCrop-OSPy and AquaCrop-OS can discuss research, bugs and future development.

There is also an extensive documentation for the model

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

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

aquacrop_pacs27-0.0.31.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

aquacrop_pacs27-0.0.31-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

File details

Details for the file aquacrop_pacs27-0.0.31.tar.gz.

File metadata

  • Download URL: aquacrop_pacs27-0.0.31.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for aquacrop_pacs27-0.0.31.tar.gz
Algorithm Hash digest
SHA256 b8ea2f726f8b5b56bdf973a55a5ab3ff3546cb5bc6ba9cdf55312e9f676c0e6d
MD5 c4fe704f2737b63df1dd82abf6c8b9cd
BLAKE2b-256 74c00f2204aa8c6638663d3c279e950ae38578dd9b0a88bad0697c4355d11e90

See more details on using hashes here.

File details

Details for the file aquacrop_pacs27-0.0.31-py3-none-any.whl.

File metadata

File hashes

Hashes for aquacrop_pacs27-0.0.31-py3-none-any.whl
Algorithm Hash digest
SHA256 281c979dd1ab62363b922e827bbb581ea6d7904efe4a6f0bb98a6b5291233d37
MD5 24dd805290cefe61bea69ec6af0e57ea
BLAKE2b-256 c23e05f2e812a4d671c5367cad6db953341751c0dbbf01b4199ed0374fd6e0c1

See more details on using hashes here.

Supported by

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