rhorizon_testplot.sh 577 B

1234567891011121314151617181920212223
  1. # Horizon angles CCW from East
  2. # Horizon angle output in degree
  3. # NC dataset
  4. DEM=elevation
  5. # test point near high way intersection
  6. coords=636483.54,222176.25
  7. g.region n=223540 s=220820 w=634650 e=638780 res=10 -p
  8. # direction=0 is East, direction=90 is North
  9. r.horizon elev_in=$DEM direction=0 horizon_step=5 bufferzone=200 \
  10. coordinate=$coords maxdistance=5000 -d output=horizon.csv --o
  11. echo 'set datafile separator ","
  12. set ylabel "Horizon angle"
  13. set xlabel "Angle (CCW from East)"
  14. plot "horizon.csv" using 1:2 with lines' > gnuplot.txt
  15. gnuplot -persist gnuplot.txt