<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">Hello Michael.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">I understand your point. R.walk does create anisotropic cost movements in one-way travel, in the sense that calculates differently downhill and uphill costs. The problem is that it is based on Naismith's algorithm. For the modeling I'm trying to produce, will generate more accurate results another algorithm: Tobler's one. 
</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">I guess I already have resolved the problem. In Tobler's hiking function, in average, there is a difference of 1km/hr in the same slope value, positive or negative. For example, at 10º is estimated 3Km/hr and at -10º, 4km/hr. This means that the difference between them is an average distance value of 500 meters, which in kilometers is expressed 
0.05Km. This is the number that Tobler sums to the positive slope value to calibrate the anisotropic cost movement. For each positive slope value, there is an increment of 0.05km to get the average value of its correspondent negative value. This is the algorithm:
</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">&nbsp;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Arial Narrow"><span style="mso-bidi-font-family: &#39;Courier New&#39;">6* exp (-3.5 * abs(Slope + 0.05))</span><span lang="EN-US" style="mso-ansi-language: EN-US">
</span></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">&nbsp;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">And it's logic: if we sum in map algebra, let's say, a cell value of 10º of a 'positive slope surface' and the correspondent value in a 'negative slope surface', -10º, we would get 3km/hr in the first case and 4km/hr in the second case: what is the average? 
0.05Km!!!</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">What do you think about this, Michael? Do you think I'm right?</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">Thanks for your help.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: EN-US"><font face="Arial Narrow">Miguel.</font></span></p><br><br>
<div><span class="gmail_quote">2007/2/1, Michael Barton &lt;<a href="mailto:michael.barton@asu.edu">michael.barton@asu.edu</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">R.cost creates an isotropic cost surface. If a slope map is used to create a<br>cost surface using r.cost, All slopes of the same magnitude have the same
<br>costs (i.e., the cost is the same whether you are going uphill or downhill).<br>This can be OK for 2-way travel (out and back), but can be problematic when<br>calculating 1-way costs.<br><br>As I understand it, r.walk
 will calculate an anisotropic cost surface--i.e.,<br>such that uphill and downhill costs are calculated differently. It also<br>allows for inclusion of an additional friction surface to weight costs and<br>input of coefficients to automatically calculate walking (or theoretically
<br>other) energy costs.<br><br>Multiplying a slope map by -1 would only make all slopes negative rather<br>than leaving some positive and some negative. You could multiply by a<br>function of the aspect to make upslope positive, downslope negative, and
<br>&#39;aroundslope&#39; in between.<br><br>However, what is uphill and what is downhill will depend on the specific<br>route. That is, the uphill direction will vary depending on the direction of<br>travel outward from a point of origin. I believe that 
r.walk takes this into<br>account.<br><br>Michael<br><br><br>On 2/1/07 1:40 AM, &quot;Gerald Nelson&quot; &lt;<a href="mailto:gnelson@uiuc.edu">gnelson@uiuc.edu</a>&gt; wrote:<br><br>&gt; Why do you want negative slope values?
<br>&gt;<br>&gt; What r.cost does is calculate the smallest cost of moving over a friction<br>&gt; surface, which could be slope, to one or more destinations.<br>&gt;<br>&gt; The manual for the command is here.<br>&gt;<br>
&gt; <a href="http://grass.itc.it/gdp/html_grass63/r.cost.html">http://grass.itc.it/gdp/html_grass63/r.cost.html</a><br>&gt;<br>&gt; Jerry<br>&gt;<br>&gt; ---- Original message ----<br>&gt;&gt; Date: Thu, 1 Feb 2007 09:05:33 +0100 (CET)
<br>&gt;&gt; From: <a href="mailto:mlage@usal.es">mlage@usal.es</a><br>&gt;&gt; Subject: Re: [GRASS-user] negative slope values and movement costs<br>&gt;&gt; To: <a href="mailto:grassuser@grass.itc.it">grassuser@grass.itc.it
</a><br>&gt;&gt;<br>&gt;&gt; Thank you Jerry.<br>&gt;&gt; How does r.cost produce negative slope values?<br>&gt;&gt;<br>&gt;&gt; Miguel<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; grassuser mailing list
<br>&gt;&gt; <a href="mailto:grassuser@grass.itc.it">grassuser@grass.itc.it</a><br>&gt;&gt; <a href="http://grass.itc.it/mailman/listinfo/grassuser">http://grass.itc.it/mailman/listinfo/grassuser</a><br>&gt; Gerald Nelson
<br>&gt; Professor, Dept. of Agricultural and Consumer Economics<br>&gt; University of Illinois, Urbana-Champaign<br>&gt; office: 217-333-6465<br>&gt; cell: 217-390-7888<br>&gt; 315 Mumford Hall<br>&gt; 1301 W. Gregory<br>
&gt; Urbana, IL 61801<br>&gt;<br>&gt;<br><br>__________________________________________<br>Michael Barton, Professor of Anthropology<br>School of Human Evolution &amp; Social Change<br>Center for Social Dynamics &amp; Complexity
<br>Arizona State University<br><br>phone: 480-965-6213<br>fax: 480-965-7671<br>www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a><br><br><br>_______________________________________________
<br>grassuser mailing list<br><a href="mailto:grassuser@grass.itc.it">grassuser@grass.itc.it</a><br><a href="http://grass.itc.it/mailman/listinfo/grassuser">http://grass.itc.it/mailman/listinfo/grassuser</a><br></blockquote>
</div><br>