apsimNGpy: The Next-Generation Agro-ecosystem Simulation Library

License: Apache-2.0 Documentation PyPI version Total PyPI downloads Read Publication Ask Teams APSIM Next Generation version Run APSIM simulation

Introduction

apsimNGpy is an open-source Python framework designed for advanced modeling with APSIM process-based model. Built on object-oriented principles. apsimNGpy extends and augments APSIM Next Generation functionalities within the Python scientific ecosystem, turning GUI-centric workflows into scriptable, reproducible, and scalable pipelines. apsimNGpy functionalities include, but not limited to the following:

  • Run large experiment sets efficiently using multiprocessing or multithreading.

  • Integrate geospatial data with automated soil and weather input retrieval.

  • Perform multi-objective optimization and sensitivity analysis for model calibration.

  • Execute APSIM through Jupyter, CLI, or python scripts with results returned as pandas DataFrames.

  • Inspect, edit, and manage APSIM models programmatically without the GUI.

  • Maintain forward and backward compatibility with evolving APSIM versions.

  • Extend and integrate workflows using an open, Apache-2.0 licensed architecture.

  • Evaluate model predictions using built-in metrics such as RMSE, RRMSE, WIA, MAE, CCC, and R².

  • Port complete projects across machines using containerized execution with referenced binaries.

Table of Contents