@ Roberto<br><br>Thank you for the hint. It&#39;s a nice way arround for a future purpose.<br><br><div style="text-align:left">The friction map I am using was build from various inputs, one of them the DEM (slope). So, if I understood right, using r.walk would be redundant beacause slope and altitude are already considered in the friction map.<br>
<br>Best Regards,<br><br>André<br></div><br><div class="gmail_quote">2012/2/8 Roberto Marzocchi <span dir="ltr">&lt;<a href="mailto:roberto.marzocchi@gmail.com">roberto.marzocchi@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I have resolved with: </div><div><br></div>r.walk -k elevation=your_dtm friction=your_friction output=<i>walkout</i> start_points=A stop_points=B<div><br></div><div>afterwards </div><div><br></div><div>r.drain -c input=<i>walkout</i> output=drainout vector_points=B</div>

<div><br></div><div>perhaps it is need a filling of the dtm and also of walkout map in order to avoid aq loop effect</div><div><br></div><div>All the best,</div><div>Roberto </div><div><br><br><div class="gmail_quote">2012/2/7 Moritz Lennert <span dir="ltr">&lt;<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>On 07/02/12 14:39, ALT SHN wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello list,<br>
<br>
I have a raster obtained through r.mapcalc whose cells values represent<br>
friction or cost.<br>
</blockquote>
<br></div>
I suppose that is friction per cell.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
To finish my study I&#39;m lacking one final step - calculate the least cost<br>
path!<br>
<br>
How do I do it? I&#39;ve tried r.cost but the result is not wat I expected -<br>
My desired output is just a line from A to B, crossing the least valued<br>
cells.<br>
</blockquote>
<br></div>
Use r.cost with the coordinate of (or the vector or raster file containing) A as start point. Then r.drain with B as starting point.<br>
<br>
Moritz<br></div></div>
______________________________<u></u>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/grass-user</a><br>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------------------<br>Associação Leonel Trindade<br>SOCIEDADE DE HISTÓRIA NATURAL<br><br>Apartado 25 2564-909 Torres Vedras Portugal<br>
Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras<br><br>Laboratório de Paleontologia e Paleoecologia: Polígono Industrial do Alto do Ameal 2565-641 Ramalhal<br><a href="http://alt-shn.blogspot.com">http://alt-shn.blogspot.com</a><br>
<a href="http://www.alt-shn.org">www.alt-shn.org</a><br>