This is a simple web application that fit a Water Retention Curve using the specified model (Van Genuchten only for instance)
fitter.py
contains all the necessary backend functions, such as the optimization routines or the WRC modelsmain.py
contains the web applicationwsgi.py
is the web server entry script
## Run local
git clone https://github.com/MoiseRousseau/WRC-Fitter
cd WRC-Fitter
pip install -r requirements.txt
python main.py
Deployment is done within a Docker container and throught the Dokku PaaS tool. See Dokku installation docs.
In addition, modify the ssh config file to use the configure the Dokku git server, such as:
Host dokku_server
HostName localhost
User dokku
IdentityFile ~/.ssh/id_ed25519_dokku
- Download App and configure Dokku repo:
git clone https://github.com/MoiseRousseau/WRC-Fitter
cd WRC-Fitter
git remote add dokku dokku_server:wrc-fitter
- Create Dokku apps and deploy:
dokku apps:create wrc-fitter
git push dokku master:master --verbose
- Check the point density, i.e. an isolated point is as important as many clustered points
- Present result as a table (dash DataTable)
- Download the curves in excel format with formula