{"id":13593770,"url":"https://github.com/aquacropos/aquacrop","last_synced_at":"2026-01-14T08:28:27.180Z","repository":{"id":37920603,"uuid":"317529874","full_name":"aquacropos/aquacrop","owner":"aquacropos","description":"AquaCrop-OSPy: Python implementation of AquaCrop-OS","archived":false,"fork":false,"pushed_at":"2025-10-30T15:27:59.000Z","size":117092,"stargazers_count":139,"open_issues_count":29,"forks_count":93,"subscribers_count":13,"default_branch":"master","last_synced_at":"2026-01-11T02:16:16.599Z","etag":null,"topics":["aquacrop","aquacrop-os","aquacrop-ospy","irrigation","python"],"latest_commit_sha":null,"homepage":"https://aquacropos.github.io/aquacrop/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aquacropos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-01T12:11:37.000Z","updated_at":"2026-01-10T20:10:37.000Z","dependencies_parsed_at":"2024-03-17T04:07:34.006Z","dependency_job_id":"bd0b9ff1-8ab0-44a6-a22c-0fe1c583ba06","html_url":"https://github.com/aquacropos/aquacrop","commit_stats":{"total_commits":436,"total_committers":12,"mean_commits":"36.333333333333336","dds":0.5137614678899083,"last_synced_commit":"2477216a2d5916860d605a23f4c34b23dc25c178"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":"fastai/nbdev_template","purl":"pkg:github/aquacropos/aquacrop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquacropos%2Faquacrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquacropos%2Faquacrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquacropos%2Faquacrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquacropos%2Faquacrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aquacropos","download_url":"https://codeload.github.com/aquacropos/aquacrop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquacropos%2Faquacrop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28364781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T23:47:38.024Z","status":"ssl_error","status_checked_at":"2026-01-12T23:45:20.975Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aquacrop","aquacrop-os","aquacrop-ospy","irrigation","python"],"created_at":"2024-08-01T16:01:24.323Z","updated_at":"2026-01-14T08:28:27.156Z","avatar_url":"https://github.com/aquacropos.png","language":"Python","funding_links":[],"categories":["Python","Consumption"],"sub_categories":["Agriculture and Nutrition"],"readme":"# AquaCrop-OSPy\n\nSoil-Crop-Water model based on AquaCrop-OS.\n\n![checks](https://badgen.net/github/checks/aquacropos/aquacrop)\n![release](https://badgen.net/github/release/aquacropos/aquacrop)\n![last-commit](https://badgen.net/github/last-commit/aquacropos/aquacrop)\n![license](https://badgen.net/pypi/license/aquacrop)\n![python-version](https://badgen.net/pypi/python/aquacrop)\n[![image](https://pepy.tech/badge/aquacrop)](https://pepy.tech/project/aquacrop)\n[![Downloads](https://pepy.tech/badge/aquacrop/month)](https://pepy.tech/project/aquacrop)\n\n\n```python\nfrom aquacrop import AquaCropModel, Soil, Crop, InitialWaterContent\nfrom aquacrop.utils import prepare_weather, get_filepath\n\nweather_file_path = get_filepath('tunis_climate.txt')\nmodel_os = AquaCropModel(\n            sim_start_time=f\"{1979}/10/01\",\n            sim_end_time=f\"{1985}/05/30\",\n            weather_df=prepare_weather(weather_file_path),\n            soil=Soil(soil_type='SandyLoam'),\n            crop=Crop('Wheat', planting_date='10/01'),\n            initial_water_content=InitialWaterContent(value=['FC']),\n        )\nmodel_os.run_model(till_termination=True)\nmodel_results = model_os.get_simulation_results().head()\nprint(model_results)\n```\n\n## About\n\nAquaCrop-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. \n\nPlease 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 \u003ca href=https://www.fao.org/aquacrop\u003e here \u003c/a\u003e.\n\nFor further information about the AquaCrop-OSPy model, you can consult the accompanying open-access journal paper on the code \u003ca href=https://doi.org/10.1016/j.agwat.2021.106976\u003e here \u003c/a\u003e. \nThere is also an extensive \u003ca href=https://aquacropos.github.io/aquacrop/\u003edocumentation \u003c/a\u003e 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 \u003ca href=https://doi.org/10.1016/j.agwat.2016.11.015\u003e here \u003c/a\u003e. \n\nMore information about the official FAO AquaCrop model on which AquaCrop-OSPy is based can be obtained \u003ca href=https://www.fao.org/aquacrop\u003e here \u003c/a\u003e, 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.\n\n## Install\n\n```bash\npip install aquacrop\n```\n\n## Quickstart\n\nA 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:\n\n1.  \u003ca href=https://colab.research.google.com/github/aquacropos/aquacrop/blob/master/docs/notebooks/AquaCrop_OSPy_Notebook_1.ipynb\u003eRunning an AquaCrop-OSPy model\u003c/a\u003e\n2.  \u003ca href=https://colab.research.google.com/github/aquacropos/aquacrop/blob/master/docs/notebooks/AquaCrop_OSPy_Notebook_2.ipynb\u003eEstimation of irrigation water demands\u003c/a\u003e\n3.  \u003ca href=https://colab.research.google.com/github/aquacropos/aquacrop/blob/master/docs/notebooks/AquaCrop_OSPy_Notebook_3.ipynb\u003eOptimisation of irrigation management strategies\u003c/a\u003e\n4.  \u003ca href=https://colab.research.google.com/github/aquacropos/aquacrop/blob/master/docs/notebooks/AquaCrop_OSPy_Notebook_4.ipynb\u003eProjection of climate change impacts\u003c/a\u003e\n\n\n## Installation troubleshooting\nIf you receive an error message such as \"No module named aquacrop.scripts.initiate_library\" or \"ModuleNotFoundError: No module named 'aquacrop.solution.solution_root_zone_water'\", please try the following troubleshooting steps:\n\n1. Run \"python -m aquacrop.scripts.initiate_library\" in your terminal, if this generates an error such as \"RuntimeError: Attempted to compile AOT function without the compiler used by numpy.distutils present. Cannot find suitable msvc.\", then you need to download and install an MSVC compiler such as the one included in Visual Studio build tools (see https://www.youtube.com/watch?v=p_R3tXSq0KI).\n\n2. If Step 1 doesn't help, then you can run aquacrop in development mode using the code below. This will turn off some function compilation, resulting in minor increases in runtime: \u003cbr\u003e\n```import os```\u003cbr\u003e\n```os.environ['DEVELOPMENT'] = 'DEVELOPMENT'```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faquacropos%2Faquacrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faquacropos%2Faquacrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faquacropos%2Faquacrop/lists"}