Dear Grass users and developers,<br><br>The run-time messages of command r.watershed is pasted below.<br>This I ran as per suggestions on a threshold area of 100 sq km. Considerable number of basins are in the limit 1 to 100 sq km. The results represent are close to natural distribution of watersheds. However, from the results, it appears to me that the threshold limit should be considered only as a guideline and not to find basins of size larger than the threshold limit.<br>
(Thu Nov 24 17:07:28 2011) <br>r.watershed elevation=ybdem@work threshold=12345 accumulation=ybdem100sqkm_acc drainage=ybdem100sqkm_fdir basin=ybdem100sqkm_basin stream=ybdem100sqkm_stream<br>
SECTION 1a (of 5): Initiating Memory.<br>SECTION 1b (of 5): Determining Offmap Flow.<br>SECTION 2: A* Search.<br>SECTION 3: Accumulating Surface Flow with MFD.<br>SECTION 4: Watershed determination.<br>SECTION 5: Closing Maps.<br>
(Thu Nov 24 17:09:38 2011) Command finished (130 sec) <br><br>-----------------------------------------------------------------------------------------------------------------------------<br> <br>In this part, I tried to ran r.watershed with SFD flag. <br>
<br>(Thu Nov 24 17:21:40 2011) <br>r.watershed -s elevation=ybdem@work threshold=12345 accumulation=ybdem100sqkm_acc_sfd drainage=ybdem100sqkm_fdir_sfd basin=ybdem100sqkm_basin_sfd stream=ybdem100sqkm_stream_sfd<br>
SECTION 1a (of 5): Initiating Memory.<br>SECTION 1b (of 5): Determining Offmap Flow.<br>SECTION 2: A* Search.<br>SECTION 3: Accumulating Surface Flow with SFD.<br>SECTION 4: Watershed determination.<br>Subprocess failed with exit code 9<br>
category information for [ybdem100sqkm_acc_sfd] in [work] missing or invalid<br>category information for [ybdem100sqkm_fdir_sfd] in [work] missing or invalid<br>category information for [ybdem100sqkm_basin_sfd] in [work] missing or invalid<br>
category information for [ybdem100sqkm_stream_sfd] in [work] missing or invalid<br>(Fri Nov 25 09:46:01 2011) Command finished (59061 sec) <br><br>One can see that I had manually terminated the command from "system monitor". It didn't complete.<br>
I tried again.<br> <br>(Fri Nov 25 09:46:35 2011) <br>r.watershed -s --overwrite elevation=ybdem@work threshold=12345 accumulation=ybdem100sqkm_acc_sfd drainage=ybdem100sqkm_fdir_sfd basin=ybdem100sqkm_basin_sfd stream=ybdem100sqkm_stream_sfd<br>
SECTION 1a (of 5): Initiating Memory.<br>SECTION 1b (of 5): Determining Offmap Flow.<br>SECTION 2: A* Search.<br>SECTION 3: Accumulating Surface Flow with SFD.<br>SECTION 4: Watershed determination.<br>Please note that the data are left in inconsistent state and may be corrupted <br>
(Fri Nov 25 10:23:45 2011) Command aborted (2230 sec) <br><br>It wasn't working. I found in "system monitor" that the program r.watershed.ram is using only 2gb ram.<br>The issue may be of interest to GRASS developers.<br>
So, I tried again with "memory" mode and it worked.<br> <br>(Fri Nov 25 10:24:33 2011) <br>r.watershed -s -m --overwrite elevation=ybdem@work threshold=12345 accumulation=ybdem100sqkm_acc_sfd drainage=ybdem100sqkm_fdir_sfd basin=ybdem100sqkm_basin_sfd stream=ybdem100sqkm_stream_sfd memory=12000<br>
SECTION 1 beginning: Initiating Variables. 5 sections total.<br>SECTION 1a: Mark masked and NULL cells<br>SECTION 1b: Determining Offmap Flow.<br>SECTION 2: A* Search.<br>SECTION 3: Accumulating Surface Flow with SFD.<br>
SECTION 4: Watershed determination.<br>SECTION 5: Closing Maps.<br>Closing stream segments map<br>Closing basins map<br>Closing accumulation map<br>Closing flow direction map<br>(Fri Nov 25 10:28:46 2011) Command finished (252 sec) <br>
<br>It was suggested that from the accumulation values equal to the number of cells of area required (i.e. 12345 for 100 sq km), one can find tentative points having watershed equal to the area desired.<br>In the accumulation values , I found that there is no value near 12345. And there are lot of negative values.<br>
<br>The results of r.report are pasted below:<br><br>+-----------------------------------------------------------------------------+<br>| RASTER MAP CATEGORY REPORT |<br>|LOCATION: only_yamuna Fri Nov 25 11:00:55 2011|<br>
|-----------------------------------------------------------------------------|<br>| north: 32:00:02.953919N east: 82:00:02.881919E |<br>|REGION south: 21:59:59.96832N west: 72:59:59.89488E |<br>
| res: 0:00:02.999999 res: 0:00:02.999999 |<br>|-----------------------------------------------------------------------------|<br>|MASK:none |<br>
|-----------------------------------------------------------------------------|<br>|MAP: Watershed accumulation: overland flow that traverses each cell (ybdem100|<br>|-----------------------------------------------------------------------------|<br>
| Category Information |<br>| #|description |<br>|-----------------------------------------------------------------------------|<br>
| <span style="color: rgb(255, 0, 0);"> -43691083--43505559.796078|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-43505559.796078--43320036.592157|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-43320036.592157--43134513.388235|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-43134513.388235--42948990.184314|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-42948990.184314--42763466.980392|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-42577943.776471--42392420.572549|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-42392420.572549--42206897.368627|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-42206897.368627--42021374.164706|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-38496433.290196--38310910.086275|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-38310910.086275--38125386.882353|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-38125386.882353--37939863.678431|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-32374167.560784--32188644.356863|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-31632074.745098--31446551.541176|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-31261028.337255--31075505.133333|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-27550564.258824--27365041.054902|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-18274404.062745--18088880.858824|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-18088880.858824--17903357.654902|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -17903357.654902--17717834.45098|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-17346788.043137--17161264.839216|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">|-17161264.839216--16975741.635294|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">|-16975741.635294--16790218.431373|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -9925859.886275--9740336.682353|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -9369290.27451--9183767.070588|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -9183767.070588--8998243.866667|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -7885104.643137--7699581.439216|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -7699581.439216--7514058.235294|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -6957488.623529--6771965.419608|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -6029872.603922--5844349.4|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -5844349.4--5658826.196078|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -5658826.196078--5473302.992157|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -5473302.992157--5287779.788235|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -5287779.788235--5102256.584314|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -5102256.584314--4916733.380392|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -4916733.380392--4731210.176471|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -4731210.176471--4545686.972549|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -4545686.972549--4360163.768627|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -4360163.768627--4174640.564706|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -3803594.156863--3618070.952941|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -3618070.952941--3432547.74902|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -3432547.74902--3247024.545098|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -3247024.545098--3061501.341176|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -3061501.341176--2875978.137255|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -2875978.137255--2690454.933333|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -2690454.933333--2504931.729412|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -2504931.729412--2319408.52549|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -2319408.52549--2133885.321569|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -2133885.321569--1948362.117647|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -1948362.117647--1762838.913725|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -1762838.913725--1577315.709804|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -1577315.709804--1391792.505882|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -1391792.505882--1206269.301961|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -1206269.301961--1020746.098039|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -1020746.098039--835222.894118|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -835222.894118--649699.690196|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -649699.690196--464176.486275|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -464176.486275--278653.282353|from to |</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">| -278653.282353--93130.078431|from to |</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">| -93130.078431-<span style="color: rgb(0, 153, 0);">92393.12549|from to</span></span><span style="color: rgb(0, 153, 0);"> |</span><br>
| <span style="color: rgb(0, 102, 0);"> 92393.12549-277916.329412|from to |</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">| 277916.329412-463439.533333|from to |</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">| 463439.533333-648962.737255|from to |</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">| 648962.737255-834485.941176|from to |</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">| 834485.941176-1020009.145098|from to |</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">| 1020009.145098-1205532.34902|from to |</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">| 1205532.34902-1391055.552941|from to |</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">| 1391055.552941-1576578.756863|from to |</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">| 1576578.756863-1762101.960784|from to |</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">| 1947625.164706-2133148.368627|from to |</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">| 2133148.368627-2318671.572549|from to |</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">| 2689717.980392-2875241.184314|from to |</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">| 3246287.592157-3431810.796078|from to |</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">| 3431810.796078-3617334|from to |</span><br>
| *|no data |<br>+-----------------------------------------------------------------------------+<br><br>I have changed the colour of negative values to red and positive values to green.<br>
<br>I have read that negative values mean that area getting flow outside the current region. <br>That's simply not possible in my case. I have created this basin from r.water.outlet. I used that as mask to cut the DEM of only that area.<br>
<br>Can anyone please shed some more light on it. Or share their experiences with us in this regard. <br>Basically, I have two queries now. 1. How to get positive accumulation values. 2. How to find the accumulation value representing 100 sq km basin area. <br>
<br>My idea to find 100 sq km basin area by walking along the rivers till we reach the desired point is still under development.<br><br><br>