[GRASS-dev] simple script to draw a path and compute length, climb, etc...

Dylan Beaudette dylan.beaudette at gmail.com
Thu Jan 3 16:34:19 EST 2008


On Thursday 03 January 2008, stefano negri wrote:
> Hello,
> I have written for my use a simple script that lets the user draw a path on
> a map (like r.profile, on which the script is built) and then outputs the
> path's length, cumulative uphill and downhill climb, highest and lowest
> altitudes, maximum and average slope (up and down).
> Unfortunately I was not able to make it work with ash, because (in my
> understanding) ash does not support arrays. I am also thinking about
> rewriting everything in C or Tcl.
> Te script is attached to this email, in case it can be of any interest to
> anybody.
> Regards and happy new year,
> Stefano.

Nice work. Have you had a look at r.walk - or thought about the possibility of 
integrating these features in the r.walk code (written using the GRASS C 
API) ? 

Cheers,

Dylan

-- 
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341


More information about the grass-dev mailing list