PyWaterBal v. 0.0.1 (README)
Unsaturated Soil Water Flow Model
PyWaterBal is a unsaturated soil water flow model. It models the vertical flow (one-dimensional) of water in the soil, following a "tipping bucket" system. This model was published as a
book by Uni. Putra Malaysia Press (also see references below).
To simplify the installation process, download the
Anacondasuite. Make sure you only choose the Python version 3.5 or higher (NOT ver 2.7). Downloading the
Anacondasuite will include not only the Python interpreter but also the
matplotlibmodule which is required by PyWaterBal.
Download the entire
How to use
At the command prompt:
python pywaterbal.py <flags>
<flags> are the following:
-i <model input text file> -o <model output/results text file> -n <number of daily time steps to run the model, in days> -p <plot charts to show the model results, optional>
-p flag is optional and must either be
b for basic chart plotting. For detailed chart plotting, use any single letter other than
python pywaterbal -i 'c:\pywaterbal\ini.txt' -o 'c:\pywaterbal\out.txt' -n 90 -pb or -pd
means the model input is
ini.txt and output file is
out.txt, and both these files are stored in
c:\pywaterbal\ folder. The model is to be run for 90 simulation days, and after the model run, the simulation results will be plotted. The 'basic' chart plots will be produced if
-pb is specified, else
-pd for more detailed charts.
- TEH, C.B.S. 2018. Development and validation of an unsaturated soil water flow model for oil palm. Pertanika Journal of Tropical Agriculture. (In Press).
- TEH, C.B.S. 2017. Modeling soil water flow in Python and Excel. Universiti Putra Malaysia, Serdang. see book