Predicts where rills/gullies will occur on a real or proposed landscape as a function of topography, climate, and cover characteristics.
rillgen2d
is written in C, but uses geospatial data input layers, such as GeoTiff. These require open-source geospatial software packages such as GDAL, GEOS, and PROJ to manage their projection information. The Graphic User Inferface (GUI) is written in Python3 using Streamlit.
Regardless of Operating System, we suggest you install Miniconda (recommended) or full Anaconda prior to running the scripts below. The Docker option does not require conda installation.
We have tested these options for running the platform on Windows 11.
-
The first step is to download repository and open the repository in your file explorer.
-
Run the install script.
- The script (scripts\install_windows.bat) downloads the miniconda installer, prompts the user to install conda, then creates the conda environment.
- To run the installer, click on
install_windows.bat
in the Windows file explorer.
-
Windows will create a pop-up saying that they prevented the installer from running. To run it anyways, click "More info" and then click "Run Anyway".
-
After a short period, the Miniconda installer will prompt you about the different install options (the default options are fine for running rillgen).
-
After installing Miniconda, the intstaller will create the enviornment. This takes around 10 minutes.
-
Once the installer is finished, the text provides a command you can enter in the Anaconda Prompt to navigate to the correct folder. Copy it, then press enter to close the window
-
To run rillgen, you need to do the following
- Then, search
Anaconda Prompt (miniconda3)
in the search box in the taskbar - In Anaconda Prompt, run
conda activate rillgen2d
- Navigate to rillgen2d folder (either with the copied command or manually)
- Launch the application with
python run.py
in the Anaconda Prompt - Then, search localhost:5000 on your preferred browser
- Then, search
Install Miniconda
Run the Miniconda installer
Download the current repository to your computer.
Open the Conda terminal, change directory to the rillgen2d
installation folder.
cd C:\path\to\rillgen2d
Run the following commands to create adn activate the conda environment
# Create a temporary conda env in which to install mamba (installing in base can run into permissions issues)
conda create -n base2 mamba -c conda-forge -y
# Activate the temporary environment
conda activate base2
# create environment for rillgen2d
mamba env create -f environment_windows.yml
# activate conda environment
mamba activate rillgen2d
# Remove the temp env (if you want)
conda env remove -n base2
If you have an existing conda env named rillgen2d, you can remove it with the following command
# or remove old rillgen2d environment
conda remove --name rillgen2d --all
Requires: Conda, ImageMagick, rillgen2d conda env. Once the Python environment has been created and activated, you can start the GUI from the Terminal or Command Prompt:
python run.py
# You will be prompted to create a streamlit account, you can just hit enter to skip this step
Search localhost:5000 on your preferred browser
TBA
TBA
We have provided two environment.yml
files which can be used with Conda to install the stack on Linux and Mac OS X, or Windows10.
Make sure to add conda
to your PATH ir variables.
Open a Terminal:
# create environment for rillgen2d
conda env create -f environment_linux.yml
# activate conda environment
conda activate rillgen2d
If you have an older installation of conda
you may need to update
# update conda
conda update -n base -c defaults conda
# update conda existing environment
conda env update --prefix ./env --file environment_linux.yml --prune
# or remove old rillgen2d environment
conda remove --name rillgen2d --all
Once the appropriate Python environment has been created, you can start the GUI from the Terminal or Command Prompt:
python run.py
The RillGen2D uses a combination of opensource python libraries for visualization in the Graphic User Interface (GUI). To install these tools we recommend that you use the conda
environment and package manager.
First, download the latest .zip
or .tar.gz
from our Releases
Source Code Linux/MaOSX v0.2 zip
Source Code Linux/MacOSX v0.2 tar.gz
Next, unpack the Zip or Tar file and put them somewhere you can find them from the command prompt or terminal.
If you want to pull from source, clone this repository to your local computer:
git clone https://github.com/jdpellet/rillgen2d
cd rillgen2d
The main
branch has the latest features. The develop
branch is where testing is taking place.
# check your python version (should be +3.7.*)
python3 --version
If it is taking too long to create the conda environment, installing mamba can dramatically speed up the process.
# At this point you should already have installed conda
# Install mamba into the base env. The install can take a little bit (upwards of 5 minutes).
conda install -n base mamba
# Create the corresponding env, replacing conda with mamba.
# For example, if you are on windows, enter the command
mamba env create -f environment_windows.yml
If you have an older installation of conda
you may need to update
# update conda
conda update -n base -c defaults conda
# update conda existing environment
conda env update --prefix ./env --file environment_linux.yml --prune
# or remove old rillgen2d environment
conda remove --name rillgen2d --all
Note: In Linux the Parameters tab number values may appear with a newline character \n
at the end of their boxes, leave these present and update the values as needed.
TBA
TBA