On 08/31/2017 11:03 PM, Ken Mankoff
wrote:
Hi Micha,
I understand what you wrote (I think). I get that the basin
product from r.watershed does not change with SFD or MFD. I
think this is because the flow direction raster from r.watershed
only provides the primary flow direction.
Yes, each pixel gets a single flow direction, one of 8 directions.
But the accumulation map doesn't know about boundaries or
basins, does it? At a divide, can water can flow equally in all
8 directions? If so, I think that at the boundary of the basin
delineated by
That can happen only for a single pixel at the very peak of a
mountain.
r.water.outlet there may be a cell that contributed 49%. The
flow direction would show this cell flows away from the basin
boundary because 51% of it does do that, so it is not in the
basin. If I use this basin as a mask, I'm losing 49% of that
cell, and the many upstream cells that contribute to it.
You won't have many upstream cells for those cells along the basin
boundary, only the few that drain exactly along the watershed
divide. And these cells will eventually become part of one basin or
the other. So I guess theoretically you could "loose" some flow
accumulation: 49% of the drainage from those few cells right along
the watershed divide. But this would be an accurate representation
of reality, since that 49% is actually not part of the basin you're
investigating.
The inefficient method, running r.watershed 14,000 times,
never considers basins and is therefore not impacted by this
issue.
Not sure I understand that.
The only way that r.watershed can return different results is if you
input a different elevation grid. The r.watershed module is strictly
a geo-morphological analysis - nothing to do with real runoff, only
the terrain, slopes, flow direction, etc. It creates a theoretical
model of where runoff would go. The only situation that I can
envision where you would rerun r.watershed is when massive earthwork
was done, and you have a new/revised elevation dataset.
-k.
Please excuse brevity. Sent from pocket computer with tiny
non-haptic feedback keyboard.
The r.water.outlet module takes as input a flow direction
raster that needs to be created first by r.watershed. So the
SFD/MFD question is irrelevant at this stage. When you first
ran r.watershed you chose which method to use for determining
flow direction for each pixel. Further, SFD/MFD influences
only the stream routing, not the total number of cells in the
basin. I'm pretty sure that if you run r.watershed once with
MFD and again with SFD, you'll get the same basin, only with
slightly different stream networks.
AFAIK there should never be a situation where water is
directed out of the basin. So all cells that flow into cell C
are then directed downstream to your final drainage point.
On 08/31/2017 10:04 PM, Ken
Mankoff wrote:
Yes. This! What you wrote.
But the issue is that r.water.outlet make basins based
on SFD, right? What if there are 10,000 cells that feed
into cell C at x,y, and then cell C feeds 49% (based on
MFD) into the basin. These 10,000 cells are not included
in the r.water.outlet basin, are they?
-k.
Please excuse brevity. Sent from pocket computer with
tiny non-haptic feedback keyboard.
I'm also not clear what you are asking. But risking a
guess:
You could run r.water.outlet *1 time* to get the basin.
Then use that raster as a MASK, so that the next process
will address only the pixels within the basin. Now do a
loop with r.univar on all 14,000 flow rasters, and
you'll get 14,000 results with total, min, max, mean,
etc of the basin pixels for each of the flow rasters.
--
Micha
On 08/31/2017 09:30 PM,
Thomas Adams wrote:
Ken,
You "want 14,000 values" of what?? Your original
email stated you were "trying to determine flow
past a drainage basin outlet" -- r.watershed does
NOT do this, if indeed this is what you want. And
you say you have "14,000 flow rasters to be used
as input" -- what exactly are these 'flow
rasters'; what is your goal? I may not
understand...
Tom
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user
--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
|