<div dir="ltr">Thank Johannes!!! <div>right! I make some test and yes if you provide the flow=temp the output accumulation will be the accumulation of the temp weighted by the area of each cell. </div><div><br></div><div>So if i divide  temp_accumulation / flowaccumulation i get the upper-stream mean temperature. </div><div><br></div><div>Thank you very much </div><div>Giuseppe </div><div><br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 May 2018 at 16:21, Johannes Radinger <span dir="ltr"><<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Giuseppe,<div>you could use the "flow" option in r.watershed: flow=temperature (result=accumulative temperature in drainage basin upstream). And then you could calculate another run of r.watershed with a flow map with values =1 (result = accumulative drainage basin upstream, cell count). Dividing both maps provides a map of average temperature upstream.</div><div><br></div><div>HTH</div><span class="HOEnZb"><font color="#888888"><div>J</div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, May 5, 2018 at 8:51 PM, Giuseppe Amatulli <span dir="ltr"><<a href="mailto:giuseppe.amatulli@gmail.com" target="_blank">giuseppe.amatulli@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi, </div><div>I'm searching for a GRASS command that is able to "accumulate" a raster following the flow accumulation output obtained by r.watershed. </div><div><br></div><div>In other words if I have a temperature raster I would like to accumulate the temperature values following the drainage direction. The final results would to get the mean of the uppers stream temperature (so accumulation_temperature / flowaccumulation).  </div><div><br></div><div> r.accumulation input=temperature  flowaccumul<wbr>ation=flow accumulation output=acc_temperature </div><div><br></div><div>It is something that exist? </div><div><br></div><div>Thank you </div><span class="m_2037453029666761880HOEnZb"><font color="#888888"><div>Giuseppe </div><div><br></div><div><br></div>-- <br><div class="m_2037453029666761880m_361817555098079462gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Giuseppe Amatulli, Ph.D.<br><br>Research scientist at<br><span>Yale School of Forestry & Environmental Studies<br></span><span>Yale Center for Research Computing<br></span>Center for Science and Social Science Information<br>New Haven, 06511<br><div>
   Teaching: <a href="http://spatial-ecology.net" target="_blank">http://spatial-ecology.net</a></div> 
  
   Work:  <a href="https://environment.yale.edu/profile/giuseppe-amatulli/" target="_blank">https://environment.yale.edu/p<wbr>rofile/giuseppe-amatulli/</a> <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
<br></div></div><span class="">______________________________<wbr>_________________<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="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/grass-user</a><br></span></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Giuseppe Amatulli, Ph.D.<br><br>Research scientist at<br><span>Yale School of Forestry & Environmental Studies<br></span><span>Yale Center for Research Computing<br></span>Center for Science and Social Science Information<br>New Haven, 06511<br><div>
   Teaching: <a href="http://spatial-ecology.net" target="_blank">http://spatial-ecology.net</a></div> 
  
   Work:  <a href="https://environment.yale.edu/profile/giuseppe-amatulli/" target="_blank">https://environment.yale.edu/profile/giuseppe-amatulli/</a> <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>