diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 0938e55..cf27bd6 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ also divide the full map into small maps to increase the speed of execution or for many other purposes by providing more than one north, east, south, west values for each smaller map. (You can refer example/DM1.txt) * bash contour.sh \ \ - * e.g. `bash contour.sh example/grassData.txt example/DM1.txt` + * e.g. `bash contour.sh example/GrassData.txt example/DM1.txt` 2. This script will generate RL points on given polyline (in form of CSV file in format *X,Y* you can refer to example/road.csv) * bash road.sh \ \ diff --git a/TheRoad.py b/TheRoad.py old mode 100644 new mode 100755 diff --git a/contour.sh b/contour.sh index 4d63f27..2999996 100755 --- a/contour.sh +++ b/contour.sh @@ -19,7 +19,7 @@ v.build map=fieldData #Count numbers of regions to be created -no_lines=$(cat $f2| wc -l) +no_lines=$(cat $2| wc -l) echo $no_lines @@ -28,14 +28,14 @@ echo $no_lines do #getting data from input file describing the region. - data=$(awk "NR>=$i&&NR<=$i" $file) + data=$(awk "NR>=$i&&NR<=$i" $2) var1=$(echo $data | cut -d',' -f1) var2=$(echo $data | cut -d',' -f2) var3=$(echo $data | cut -d',' -f3) var4=$(echo $data | cut -d',' -f4) echo "next points" - echo "North: " $var1 " South: " $var2 " East: " $var2 " West: " $var2 + echo "North: " $var1 " South: " $var2 " East: " $var3 " West: " $var4 #name of new raster MAP elev_val="DTM$i" @@ -50,5 +50,3 @@ echo $no_lines # Create raster map r.contour --overwrite input=$elev_val output=$contour_val step=.5 cut=0 done - - diff --git a/example/DM1.txt b/example/DM1.txt old mode 100644 new mode 100755 index 6d042e8..e9f644c --- a/example/DM1.txt +++ b/example/DM1.txt @@ -1,4 +1,4 @@ -3423000,3424500,595250,596250 -3421750,3422250,595000,596000 -3420500,3422000,594250,595250 +3423000,3421500,595250,594250 +3421750,3420250,595000,594000 +3420500,3419000,594250,593250 diff --git a/example/GrassData.txt b/example/GrassData.txt old mode 100644 new mode 100755 diff --git a/example/road.csv b/example/road.csv old mode 100644 new mode 100755 diff --git a/plot.sage b/plot.sage old mode 100644 new mode 100755 diff --git a/road.sh b/road.sh old mode 100644 new mode 100755