Scripts supporting Carraro, L., "Seamless extraction and analysis of river networks in R: the rivnet package"
test_rivnet.Ris the main script file, and which produces Figs. 2, 3 and 4 of the manuscript.rivers4.csvcontains inputs to functionextract_river()for the four basins used in Fig. 3.results_4rivers.rdastores river data for Fig. 3. It is produced bytest_rivnet.R.ARAcoord.csv: contains data on wastewater treatment plants for the Thur catchment, and is used in Fig. 4.
Note that the landcover map of Switzerland must be downloaded in order for the script to produce Fig. 4 (see lines 187-188 in test_rivnet.R).