Package: aquacrop
AquaCrop-OSPySoil-Crop-Water model based on AquaCrop-OS.fromaquacropimportAquaCropModel,Soil,Crop,InitialWaterContentfromaquacrop.utilsimportprepare_weather,get_filepathweather_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)AboutAquaCrop-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.AquaCrop-OSPy is currently up to date with AquaCrop FAO version 6.0, with exception of some features not yet included in Python code (salinity and fertility stress, and weed management)Open access journal articlehereIt is built upon the AquaCropOS crop-growth model written in Matlab (paper,webpage) which itself itself is based on the FAO AquaCrop modelWebpage. Comparisons to both base models are shownhere.Aforumhas also been created so that users of AquaCrop-OSPy and AquaCrop-OS can discuss research, bugs and future development.There is also an extensivedocumentationfor the modelInstallpipinstallaquacropQuickstartA 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:Running an AquaCrop-OSPy modelEstimation of irrigation water demandsOptimisation of irrigation management strategiesProjection of climate change impactsInstallation troubleshootingIf 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: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 (seehttps://www.youtube.com/watch?v=p_R3tXSq0KI).If Step 1 doesn't help, then you can run aquacrop in pure python (this will be slower) using:import osos.environ['DEVELOPMENT'] = 'DEVELOPMENT'More information, including screenshots and gifs, can be found at The University of Manchester'sarticle, Tim Foster's mediumpost, or twitterthread.A seperatecategoryinside the AquaCrop-OSPy forum has been created to discuss
AquaPlan, including any issues, questions, or suggestions.