<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;" bidimailui-charset-is-forced="true"
    smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
    <div id="smartTemplate4-template">
      <div id="my_message" style="color:blue; ">  
        <br>
      </div>
    </div>
    Hi Markus<br>
    <br>
    <div id="smartTemplate4-quoteHeader">------ Original Message ------
      Subject: Re: [GRASS-user] flow accumulation values
      Date: Thu, 25 Aug 2016 19:54:59 +0200
      To: Ken Mankoff, Micha Silver, Grass-user
      From: Markus Metz</div>
    <blockquote
cite="mid:CAG+h=FGnAOkPJsOWbLj1bh_bMG3c2GFsdeW=pOQNtYxrDteHKQ@mail.gmail.com"
      type="cite">
      <pre wrap="">On Thu, Aug 25, 2016 at 4:07 PM, Ken Mankoff <a class="moz-txt-link-rfc2396E" href="mailto:mankoff@gmail.com"><mankoff@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">
Is this MFD or SFD? If MFD, flow may split and re-join.
</pre>
      </blockquote>
      <pre wrap="">
Exactly. With MFD, flow may be distributed to several downstream cells
and the accumulation value can drop when following the extracted path.
This is is most prominent when a river flows into an ocean. Paths,
however, follow Horton's stream network logic and can not split, only
join.
</pre>
    </blockquote>
    <br>
    So what would be the correct way to get total flow accumulation for
    each stream segment?<br>
    Do I have to revert to running r.watershed with the SFD flag?<br>
    <br>
    <blockquote
cite="mid:CAG+h=FGnAOkPJsOWbLj1bh_bMG3c2GFsdeW=pOQNtYxrDteHKQ@mail.gmail.com"
      type="cite">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">
I also noticed that r.stream.extract finds different flow-paths than r.watershed, which complicates comparisons between the two. The work-around for this is to use a mask to force r.stream.extract to find the flow-path you want.
</pre>
      </blockquote>
      <pre wrap="">
r.stream.extract is the preferred stream extraction tool.</pre>
    </blockquote>
    OK, but a flow accum raster is required for running r.stream.order
    (which outputs flow_accum) and AFAIK, the only way to get a
    flow_accum raster is with r.watershed.<br>
    ??<br>
    <br>
    Best,<br>
    Micha<br>
    <br>
    <blockquote
cite="mid:CAG+h=FGnAOkPJsOWbLj1bh_bMG3c2GFsdeW=pOQNtYxrDteHKQ@mail.gmail.com"
      type="cite">
      <pre wrap="">

Markus M

</pre>
      <blockquote type="cite">
        <pre wrap="">
  -k.

On 2016-08-25 at 13:35, Micha Silver <a class="moz-txt-link-rfc2396E" href="mailto:micha@arava.co.il"><micha@arava.co.il></a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">I noticed something today that I don't understand. When I run
r.watershed and calculate the flow accumulation raster, I expect that
along each stream, in the direction of flow, accumulation values will
always be higher from one cell to the next. But I see this is not the
case. Sometimes, along a stream, the accumulation will drop for one
cell, then "jump up" again a few cells downstream.

See the attached image. The green squares are clipped from a flow
accum grid. And the numbers are flow accum values. The arrow is
general flow direction, and the circles show examples of a sudden drop
in flow accum.

I'm aware of the "edge of map" behavior where out of region accum gets
a negative value. That's not the issue here, since the sample in the
attached image is from right in the center of the region, no off map
flow is involved.

This problem surfaced in a script I've prepared to calculate total
flow accumulation for each stream reach. After running the addon
r.stream.order I add columns to the streams vector map for X-Y of the
end points and total flow for each reach, then I use v.what.rast to
get the flow accum at each stream reach end-point. But the values I'm
getting are strange. Sometimes a downstream reach shows lower total
accum than the previous, upstream segment.

Maybe someone can shed some light?

Thanks, Micha
</pre>
        </blockquote>
        <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="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>