[GRASS-user] r.watershed negative values in flow accumulation
Margherita Di Leo
diregola at gmail.com
Mon Jul 27 08:36:44 EDT 2009
Jarek Jasiewicz wrote:
>
>
> Margherita Di Leo pisze:
>> Hi all,
>>
>> I found a strange result runnig r.watershed . There are _many_
>> negative values in flow accumulation obtained with Multiple Flow
>> Direction algorithm (MFD, f flag). I compared with the accumulation
>> map obtained with r.terraflow. It is surprising to see that with
>> r.terraflow there are very few negative values. How is it possible?
>> Is the algorithm (MFD) the same? How is the true result?
>>
>> I'm runnig Grass 6.5 svn on Ubuntu 8.04 - 64 bit.
> negative values are ascribed to that cells where real cumulated flow
> cannot be calculated. In most cases it is for streams which drain from
> outside area. See help for r.watershed, it is well described there.
> If you want all values positve run: echo 'new_accum=abs(accum)'|r.mapcalc
> BTW it is very good idea to use negative values for that cells, As far
> as I know only grass had that feature
> Jarek
Thanks for your answer.
The problem is to understand the fact that almost every values are
negative, and it is a very big region as you can see:
GRASS 6.5.svn (Arno):~ > g.region -p
projection: 1 (UTM)
zone: 32
datum: wgs84
ellipsoid: wgs84
north: 4891280
south: 4756620
west: 596320
east: 759480
nsres: 20
ewres: 20
rows: 6733
cols: 8158
cells: 54927814
attached the results of r.stats for r.watershed and r.terraflow. In the
map obtained by r.terraflow there are negative values too, but are few,
so it seems to me more realistic.
Cheers
margherita
>>
>> Command lines:
>>
>> r.watershed -f elevation=elev1 at ex_20 accumulation=accumulation_MFD
>> convergence=5 memory=300
>>
>> r.terraflow elevation=elev1 at ex_20 filled=filled_terraflow
>> direction=dir_terraflow swatershed=swa_terraflow
>> accumulation=acc_terraflow tci=tci d8cut=infinity memory=300
>> STREAM_DIR=/var/tmp stats=/home/margherita/terraflow_stats.out
>>
>> Thank you in advance.
>>
>> margherita
>>
>
--
Eng. Margherita Di Leo
Ph.D. Student
Methods and Technologies for Environmental Monitoring
Department of Environmental Engineering and Physics (DIFA)
University of Basilicata
Campus Macchia Romana
85100 - Potenza
Italy
Office: +39-0971205363
Fax: +39-0971205160
E-mail: dileomargherita AT gmail DOT com
Skype: dileomargherita
URL: http://www.difa.unibas.it/A_Manager_PP.do?azione=visualizzaHomePage&id=106
-------------- next part --------------
1-79545.607843
79545.607843-159090.215686
159090.215686-238634.823529
238634.823529-318179.431373
318179.431373-397724.039216
397724.039216-477268.647059
477268.647059-556813.254902
556813.254902-636357.862745
636357.862745-715902.470588
715902.470588-795447.078431
795447.078431-874991.686275
874991.686275-954536.294118
954536.294118-1034080.901961
1034080.901961-1113625.509804
1113625.509804-1193170.117647
1193170.117647-1272714.72549
1272714.72549-1352259.333333
1352259.333333-1431803.941176
1431803.941176-1511348.54902
1511348.54902-1590893.156863
1590893.156863-1670437.764706
1670437.764706-1749982.372549
1749982.372549-1829526.980392
1829526.980392-1909071.588235
1909071.588235-1988616.196078
1988616.196078-2068160.803922
2068160.803922-2147705.411765
2147705.411765-2227250.019608
2227250.019608-2306794.627451
2306794.627451-2386339.235294
2386339.235294-2465883.843137
2465883.843137-2545428.45098
2545428.45098-2624973.058824
2624973.058824-2704517.666667
2704517.666667-2784062.27451
2784062.27451-2863606.882353
2863606.882353-2943151.490196
2943151.490196-3022696.098039
3022696.098039-3102240.705882
3102240.705882-3181785.313725
3181785.313725-3261329.921569
3261329.921569-3340874.529412
3340874.529412-3420419.137255
3420419.137255-3499963.745098
3499963.745098-3579508.352941
3579508.352941-3659052.960784
3659052.960784-3738597.568627
3738597.568627-3818142.176471
3818142.176471-3897686.784314
3897686.784314-3977231.392157
3977231.392157-4056776
4056776-4136320.607843
4136320.607843-4215865.215686
4215865.215686-4295409.823529
4295409.823529-4374954.431373
4374954.431373-4454499.039216
4454499.039216-4534043.647059
4534043.647059-4613588.254902
4613588.254902-4693132.862745
4693132.862745-4772677.470588
4772677.470588-4852222.078431
4852222.078431-4931766.686275
4931766.686275-5011311.294118
5011311.294118-5090855.901961
5090855.901961-5170400.509804
5170400.509804-5249945.117647
5249945.117647-5329489.72549
5329489.72549-5409034.333333
5409034.333333-5488578.941176
5488578.941176-5568123.54902
5568123.54902-5647668.156863
5647668.156863-5727212.764706
5727212.764706-5806757.372549
5806757.372549-5886301.980392
5886301.980392-5965846.588235
5965846.588235-6045391.196078
6045391.196078-6124935.803922
6124935.803922-6204480.411765
6204480.411765-6284025.019608
6284025.019608-6363569.627451
6363569.627451-6443114.235294
6443114.235294-6522658.843137
6522658.843137-6602203.45098
6602203.45098-6681748.058824
6681748.058824-6761292.666667
6761292.666667-6840837.27451
6840837.27451-6920381.882353
6920381.882353-6999926.490196
6999926.490196-7079471.098039
7079471.098039-7159015.705882
7159015.705882-7238560.313725
7238560.313725-7318104.921569
7318104.921569-7397649.529412
7397649.529412-7477194.137255
7477194.137255-7556738.745098
7556738.745098-7636283.352941
7636283.352941-7715827.960784
7715827.960784-7795372.568627
7795372.568627-7874917.176471
7874917.176471-7954461.784314
7954461.784314-8034006.392157
8034006.392157-8113551
8113551-8193095.607843
8193095.607843-8272640.215686
8272640.215686-8352184.823529
8352184.823529-8431729.431373
8431729.431373-8511274.039216
8511274.039216-8590818.647059
8590818.647059-8670363.254902
8670363.254902-8749907.862745
8749907.862745-8829452.470588
8829452.470588-8908997.078431
8908997.078431-8988541.686275
8988541.686275-9068086.294118
9068086.294118-9147630.901961
9147630.901961-9227175.509804
9227175.509804-9306720.117647
9306720.117647-9386264.72549
9386264.72549-9465809.333333
9465809.333333-9545353.941176
9545353.941176-9624898.54902
9624898.54902-9704443.156863
9704443.156863-9783987.764706
9783987.764706-9863532.372549
9863532.372549-9943076.980392
9943076.980392-10022621.588235
10022621.588235-10102166.196078
10102166.196078-10181710.803922
10181710.803922-10261255.411765
10261255.411765-10340800.019608
10340800.019608-10420344.627451
10420344.627451-10499889.235294
10499889.235294-10579433.843137
10579433.843137-10658978.45098
10658978.45098-10738523.058824
10738523.058824-10818067.666667
10818067.666667-10897612.27451
10897612.27451-10977156.882353
10977156.882353-11056701.490196
11056701.490196-11136246.098039
11136246.098039-11215790.705882
11215790.705882-11295335.313725
11295335.313725-11374879.921569
11374879.921569-11454424.529412
11454424.529412-11533969.137255
11533969.137255-11613513.745098
11613513.745098-11693058.352941
11693058.352941-11772602.960784
11772602.960784-11852147.568627
11852147.568627-11931692.176471
11931692.176471-12011236.784314
12011236.784314-12090781.392157
12090781.392157-12170326
12170326-12249870.607843
12249870.607843-12329415.215686
12329415.215686-12408959.823529
12408959.823529-12488504.431373
12488504.431373-12568049.039216
12568049.039216-12647593.647059
12647593.647059-12727138.254902
12727138.254902-12806682.862745
12806682.862745-12886227.470588
12886227.470588-12965772.078431
12965772.078431-13045316.686275
13045316.686275-13124861.294118
13124861.294118-13204405.901961
13204405.901961-13283950.509804
13283950.509804-13363495.117647
13363495.117647-13443039.72549
13443039.72549-13522584.333333
13522584.333333-13602128.941176
13602128.941176-13681673.54902
13681673.54902-13761218.156863
13761218.156863-13840762.764706
13840762.764706-13920307.372549
13920307.372549-13999851.980392
13999851.980392-14079396.588235
14079396.588235-14158941.196078
14158941.196078-14238485.803922
14238485.803922-14318030.411765
14318030.411765-14397575.019608
14397575.019608-14477119.627451
14477119.627451-14556664.235294
14556664.235294-14636208.843137
14636208.843137-14715753.45098
14715753.45098-14795298.058824
14795298.058824-14874842.666667
14874842.666667-14954387.27451
14954387.27451-15033931.882353
15033931.882353-15113476.490196
15113476.490196-15193021.098039
15193021.098039-15272565.705882
15272565.705882-15352110.313725
15352110.313725-15431654.921569
15431654.921569-15511199.529412
15511199.529412-15590744.137255
15590744.137255-15670288.745098
15670288.745098-15749833.352941
15749833.352941-15829377.960784
15829377.960784-15908922.568627
15908922.568627-15988467.176471
15988467.176471-16068011.784314
16068011.784314-16147556.392157
16147556.392157-16227101
16227101-16306645.607843
16306645.607843-16386190.215686
16386190.215686-16465734.823529
16465734.823529-16545279.431373
16545279.431373-16624824.039216
16624824.039216-16704368.647059
16704368.647059-16783913.254902
16783913.254902-16863457.862745
16863457.862745-16943002.470588
16943002.470588-17022547.078431
17022547.078431-17102091.686275
17102091.686275-17181636.294118
17181636.294118-17261180.901961
17261180.901961-17340725.509804
17340725.509804-17420270.117647
17420270.117647-17499814.72549
17499814.72549-17579359.333333
17579359.333333-17658903.941176
17658903.941176-17738448.54902
17738448.54902-17817993.156863
17817993.156863-17897537.764706
17977082.372549-18056626.980392
18056626.980392-18136171.588235
18136171.588235-18215716.196078
18295260.803922-18374805.411765
18374805.411765-18454350.019608
18454350.019608-18533894.627451
18533894.627451-18613439.235294
18613439.235294-18692983.843137
18692983.843137-18772528.45098
18772528.45098-18852073.058824
18852073.058824-18931617.666667
18931617.666667-19011162.27451
19011162.27451-19090706.882353
19090706.882353-19170251.490196
19170251.490196-19249796.098039
19249796.098039-19329340.705882
19329340.705882-19408885.313725
19408885.313725-19488429.921569
19488429.921569-19567974.529412
19567974.529412-19647519.137255
19647519.137255-19727063.745098
19727063.745098-19806608.352941
19806608.352941-19886152.960784
19886152.960784-19965697.568627
19965697.568627-20045242.176471
20045242.176471-20124786.784314
20124786.784314-20204331.392157
20204331.392157-20283876
-------------- next part --------------
-20284264.180602--20201493.059117
-20201493.059117--20118721.937633
-20118721.937633--20035950.816149
-20035950.816149--19953179.694664
-19953179.694664--19870408.57318
-19870408.57318--19787637.451695
-19787637.451695--19704866.330211
-19704866.330211--19622095.208727
-19622095.208727--19539324.087242
-19539324.087242--19456552.965758
-19456552.965758--19373781.844273
-19291010.722789--19208239.601304
-19208239.601304--19125468.47982
-19125468.47982--19042697.358336
-18959926.236851--18877155.115367
-18877155.115367--18794383.993882
-18794383.993882--18711612.872398
-18711612.872398--18628841.750913
-18628841.750913--18546070.629429
-18546070.629429--18463299.507945
-18463299.507945--18380528.38646
-18380528.38646--18297757.264976
-18297757.264976--18214986.143491
-18132215.022007--18049443.900522
-18049443.900522--17966672.779038
-17966672.779038--17883901.657554
-17801130.536069--17718359.414585
-17718359.414585--17635588.2931
-17635588.2931--17552817.171616
-17552817.171616--17470046.050131
-17470046.050131--17387274.928647
-17387274.928647--17304503.807163
-17304503.807163--17221732.685678
-17221732.685678--17138961.564194
-17138961.564194--17056190.442709
-17056190.442709--16973419.321225
-16973419.321225--16890648.19974
-16807877.078256--16725105.956772
-16725105.956772--16642334.835287
-16642334.835287--16559563.713803
-16559563.713803--16476792.592318
-16476792.592318--16394021.470834
-16394021.470834--16311250.349349
-16311250.349349--16228479.227865
-16228479.227865--16145708.106381
-16145708.106381--16062936.984896
-16062936.984896--15980165.863412
-15897394.741927--15814623.620443
-15814623.620443--15731852.498958
-15731852.498958--15649081.377474
-15649081.377474--15566310.25599
-15566310.25599--15483539.134505
-15483539.134505--15400768.013021
-15400768.013021--15317996.891536
-15317996.891536--15235225.770052
-15235225.770052--15152454.648567
-15152454.648567--15069683.527083
-15069683.527083--14986912.405599
-14986912.405599--14904141.284114
-14904141.284114--14821370.16263
-14821370.16263--14738599.041145
-14738599.041145--14655827.919661
-14655827.919661--14573056.798176
-14573056.798176--14490285.676692
-14490285.676692--14407514.555208
-14407514.555208--14324743.433723
-14324743.433723--14241972.312239
-14241972.312239--14159201.190754
-14159201.190754--14076430.06927
-14076430.06927--13993658.947785
-13993658.947785--13910887.826301
-13910887.826301--13828116.704817
-13828116.704817--13745345.583332
-13745345.583332--13662574.461848
-13662574.461848--13579803.340363
-13579803.340363--13497032.218879
-13497032.218879--13414261.097394
-13414261.097394--13331489.97591
-13331489.97591--13248718.854426
-13248718.854426--13165947.732941
-13165947.732941--13083176.611457
-13083176.611457--13000405.489972
-13000405.489972--12917634.368488
-12917634.368488--12834863.247003
-12834863.247003--12752092.125519
-12752092.125519--12669321.004035
-12669321.004035--12586549.88255
-12586549.88255--12503778.761066
-12503778.761066--12421007.639581
-12338236.518097--12255465.396612
-12255465.396612--12172694.275128
-12172694.275128--12089923.153644
-12089923.153644--12007152.032159
-12007152.032159--11924380.910675
-11924380.910675--11841609.78919
-11841609.78919--11758838.667706
-11758838.667706--11676067.546221
-11676067.546221--11593296.424737
-11593296.424737--11510525.303253
-11510525.303253--11427754.181768
-11427754.181768--11344983.060284
-11344983.060284--11262211.938799
-11262211.938799--11179440.817315
-11179440.817315--11096669.695831
-11096669.695831--11013898.574346
-11013898.574346--10931127.452862
-10931127.452862--10848356.331377
-10848356.331377--10765585.209893
-10765585.209893--10682814.088408
-10600042.966924--10517271.84544
-10351729.602471--10268958.480986
-10268958.480986--10186187.359502
-10186187.359502--10103416.238017
-10103416.238017--10020645.116533
-10020645.116533--9937873.995049
-9937873.995049--9855102.873564
-9855102.873564--9772331.75208
-9772331.75208--9689560.630595
-9689560.630595--9606789.509111
-9606789.509111--9524018.387626
-9524018.387626--9441247.266142
-9441247.266142--9358476.144658
-9358476.144658--9275705.023173
-9275705.023173--9192933.901689
-9192933.901689--9110162.780204
-9110162.780204--9027391.65872
-9027391.65872--8944620.537235
-8944620.537235--8861849.415751
-8861849.415751--8779078.294267
-8779078.294267--8696307.172782
-8696307.172782--8613536.051298
-8613536.051298--8530764.929813
-8530764.929813--8447993.808329
-8447993.808329--8365222.686844
-8365222.686844--8282451.56536
-8282451.56536--8199680.443876
-8199680.443876--8116909.322391
-8116909.322391--8034138.200907
-8034138.200907--7951367.079422
-7951367.079422--7868595.957938
-7868595.957938--7785824.836453
-7785824.836453--7703053.714969
-7703053.714969--7620282.593485
-7620282.593485--7537511.472
-7537511.472--7454740.350516
-7454740.350516--7371969.229031
-7371969.229031--7289198.107547
-7289198.107547--7206426.986062
-7206426.986062--7123655.864578
-7123655.864578--7040884.743094
-7040884.743094--6958113.621609
-6958113.621609--6875342.500125
-6875342.500125--6792571.37864
-6792571.37864--6709800.257156
-6709800.257156--6627029.135671
-6627029.135671--6544258.014187
-6544258.014187--6461486.892703
-6461486.892703--6378715.771218
-6378715.771218--6295944.649734
-6295944.649734--6213173.528249
-6213173.528249--6130402.406765
-6130402.406765--6047631.28528
-6047631.28528--5964860.163796
-5964860.163796--5882089.042312
-5882089.042312--5799317.920827
-5799317.920827--5716546.799343
-5716546.799343--5633775.677858
-5633775.677858--5551004.556374
-5551004.556374--5468233.434889
-5468233.434889--5385462.313405
-5385462.313405--5302691.191921
-5302691.191921--5219920.070436
-5219920.070436--5137148.948952
-5137148.948952--5054377.827467
-5054377.827467--4971606.705983
-4971606.705983--4888835.584498
-4888835.584498--4806064.463014
-4806064.463014--4723293.34153
-4723293.34153--4640522.220045
-4640522.220045--4557751.098561
-4557751.098561--4474979.977076
-4474979.977076--4392208.855592
-4392208.855592--4309437.734107
-4309437.734107--4226666.612623
-4226666.612623--4143895.491139
-4143895.491139--4061124.369654
-4061124.369654--3978353.24817
-3978353.24817--3895582.126685
-3895582.126685--3812811.005201
-3812811.005201--3730039.883716
-3730039.883716--3647268.762232
-3647268.762232--3564497.640748
-3564497.640748--3481726.519263
-3481726.519263--3398955.397779
-3398955.397779--3316184.276294
-3316184.276294--3233413.15481
-3233413.15481--3150642.033325
-3150642.033325--3067870.911841
-3067870.911841--2985099.790357
-2985099.790357--2902328.668872
-2902328.668872--2819557.547388
-2819557.547388--2736786.425903
-2736786.425903--2654015.304419
-2654015.304419--2571244.182935
-2571244.182935--2488473.06145
-2488473.06145--2405701.939966
-2405701.939966--2322930.818481
-2322930.818481--2240159.696997
-2240159.696997--2157388.575512
-2157388.575512--2074617.454028
-2074617.454028--1991846.332544
-1991846.332544--1909075.211059
-1909075.211059--1826304.089575
-1826304.089575--1743532.96809
-1743532.96809--1660761.846606
-1660761.846606--1577990.725121
-1577990.725121--1495219.603637
-1495219.603637--1412448.482153
-1412448.482153--1329677.360668
-1329677.360668--1246906.239184
-1246906.239184--1164135.117699
-1164135.117699--1081363.996215
-1081363.996215--998592.87473
-998592.87473--915821.753246
-915821.753246--833050.631762
-833050.631762--750279.510277
-750279.510277--667508.388793
-667508.388793--584737.267308
-584737.267308--501966.145824
-501966.145824--419195.024339
-419195.024339--336423.902855
-336423.902855--253652.781371
-253652.781371--170881.659886
-170881.659886--88110.538402
-88110.538402--5339.416917
-5339.416917-77431.704567
77431.704567-160202.826052
160202.826052-242973.947536
242973.947536-325745.06902
325745.06902-408516.190505
408516.190505-491287.311989
491287.311989-574058.433474
574058.433474-656829.554958
656829.554958-739600.676443
739600.676443-822371.797927
More information about the grass-user
mailing list