storm-fsv-cvut / smoderp2d_implicit_new_fork

SMODERP2D - Distributed event-based model for surface and subsurface runoff and erosion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SMODERP2D

cmd_provider_consistency_test grass_provider_consistency_test

Distributed event-based model for surface and subsurface runoff and erosion.

    @ @ @   @       @     @ @     @ @ @     @ @ @ @  @ @ @    @ @ @
   @        @ @   @ @   @     @   @     @   @        @     @  @     @
   @        @   @   @  @       @  @      @  @        @     @  @     @
     @ @    @       @  @       @  @      @  @ @ @    @ @ @    @ @ @
         @  @       @  @       @  @      @  @        @   @    @
         @  @       @   @     @   @     @   @        @    @   @
    @ @ @   @       @     @ @     @ @ @     @ @ @ @  @     @  @
    \  \  /   / /    \   \  /   \  /    /     /       @ @ @   @ @ @
     \ _\/   /_/      \   \/     \/    /_____/       @     @  @     @
         \__/          \  /      _\___/                    @  @      @
             \____      \/      /                         @   @      @
                  \_____/______/                        @     @      @
                               \                      @       @     @
                                \___________________ @ @ @ @  @ @ @

How to test

Download SMODERP2D source code to your computer.

git clone https://github.com/storm-fsv-cvut/smoderp2d.git

From Docker container

Build an image:

docker build -t smoderp docker/

Run SMODERP command line tool from Docker container:

docker run -v `pwd`:/opt/smoderp2d -w /opt/smoderp2d/ --rm --entrypoint \
 ./bin/start-smoderp2d.py smoderp \
 --config tests/quicktest.ini

From command line locally

./bin/start-smoderp2d.py --config tests/quicktest.ini

From GRASS GIS

Note: GRASS GIS 8.3+ required

Create testing mapset:

grass --text -c tests/grassdata/smoderp2d-location/test/

Run r.smoderp2d module:

./bin/grass/r.smoderp2d/r.smoderp2d.py \
    elevation=dem10m@PERMANENT \
    soil=soils@PERMANENT \
    soil_type_fieldname=SID \
    vegetation=landuse@PERMANENT \
    vegetation_type_fieldname=LandUse \
    rainfall_file=tests/data/rainfall.txt \
    maxdt=30 end_time=40 \
    points=points@PERMANENT \
    table_soil_vegetation=soil_veg_tab_mean@PERMANENT \
    table_soil_vegetation_fieldname=soilveg \
    streams=stream@PERMANENT \
    channel_properties_table=stream_shape@PERMANENT \
    streams_channel_type_fieldname=channel_id \
    output=tests/data/output

From ArcGIS 10.x or Pro

Launch SMODERP2D ArcToolbox from bin\arcgis directory.

SMODERP2D ArcToolbox in action

From QGIS

Requirements: QGIS 3.28.10 and higher

Set path to the plugin from command line:

QGIS_PLUGINPATH=`pwd`/bin/qgis qgis tests/data/qgis_project.qgz

or define QGIS_PLUGINPATH in Settings -> Options -> System and restart QGIS:

SMODERP2D QGIS settings

And enable SMODERP2D plugin in Plugins -> Manage and Install Plugins....

About

SMODERP2D - Distributed event-based model for surface and subsurface runoff and erosion

License:GNU General Public License v3.0


Languages

Language:Python 92.7%Language:Makefile 2.5%Language:HTML 1.8%Language:Batchfile 0.9%Language:Shell 0.8%Language:R 0.8%Language:QML 0.3%Language:Dockerfile 0.2%