<html style="direction: ltr;">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-charset-is-forced="true" style="direction: ltr;"
    text="#000000" bgcolor="#FFFFFF">
    Hi:<br>
    There's an option to the r.univar module that takes a "zones"
    raster, and calculates univariate statistics for each zone.
    Statistics like mean, max, count, etc are calculated from the input
    raster for each category in the zones file. The zones, in your case
    would be basins from r.watershed, So you could do:<br>
    <tt><br>
      r.univar map=temperature zones=basins output=temperature_stats</tt><tt><br>
    </tt><br>
    I'm not sure this is what you want, but it might get you started...<br>
    <br>
    <div class="moz-cite-prefix">On 05/05/2018 09:51 PM, Giuseppe
      Amatulli wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKoiDH+qK-BhXkxDNkMzAG39zyQNP+x+AXbPPN6qP_6qntYeqg@mail.gmail.com">
      <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  flowaccumulation=flow
          accumulation output=acc_temperature </div>
        <div><br>
        </div>
        <div>It is something that exist? </div>
        <div><br>
        </div>
        <div>Thank you </div>
        <div>Giuseppe </div>
        <div><br>
        </div>
        <div><br>
        </div>
        -- <br>
        <div class="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"
                                                      moz-do-not-send="true">http://spatial-ecology.net</a></div>
                                                  Work:  <a
                                                    href="https://environment.yale.edu/profile/giuseppe-amatulli/"
                                                    target="_blank"
                                                    moz-do-not-send="true">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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
  </body>
</html>