storm-fsv-cvut / smoderp2d

SMODERP2D - Distributed event-based model for surface and subsurface runoff and erosion
https://storm-fsv-cvut.github.io/smoderp2d-manual/
GNU General Public License v3.0
9 stars 4 forks source link

Save dpre.save on dpre #368

Closed landam closed 5 months ago

landam commented 5 months ago

Currently dpre.save is not saved on workflow: dpre. How to test:

Change .config.ini:

-workflow_mode: full
+workflow_mode: dpre

Run:

./tests/run_grass_gistest.sh rain_sim 001

Enter GRASS location:

grass /tmp/smoderp2d-rain_sim/test

and run:

PYTHONPATH=$PYTHONPATH:`pwd` ./bin/grass/r.smoderp2d/r.smoderp2d.py \
    elevation=dem@PERMANENT \
    soil=soils@PERMANENT \
    soil_type_fieldname=Soil \
    vegetation=landuse@PERMANENT \
    vegetation_type_fieldname=LandUse \
    rainfall_file=tests/data/rainfall_nucice.txt \
    maxdt=5 end_time=5 \
    points=points@PERMANENT points_fieldname='point_id' \
    table_soil_vegetation=soil_veg_tab@PERMANENT \
    table_soil_vegetation_fieldname=soilveg \
    streams=streams@PERMANENT \
    channel_properties_table=streams_shape@PERMANENT \
    streams_channel_type_fieldname=channel_id \
    output=tests/data/output

Check existence of dpre.save:

file tests/data/output/dpre.save