<div dir="ltr"><div><div><div><div><div><div><div><div>Stephan, I'll give r.watershed a try and let it run for a couple of days. Thanks<br><br></div>Thayer, I used r.recode because the person that sent me the data messed up the null values. So in order to fix that I did:<br></div>1) use r.external to bring the data to Grass<br></div>2) fix null values with r.recode, which was faster than r.null<br><br></div>But I gave up on that path and since imported the data (r.in.gdal) and fixed the null values with r.null.<br></div>I'm also using integer values (CELL type) because from what I heard, SRTM does not provide floating point data.<br><br></div>Now I tried to run r.terraflow but I got a type error which asked me to use r.terraflow.short. Since I don't have that command in my grass instalatin, I converted the SRTM data to float. But that was to no avail since it's now giving me a dimensions type overflow error and asking me to change the dimension_type and recompile.<br><br></div>I'll give r.watershed a try. If that does not work, I'll see if I can recompile.<br><br></div>Thanks<br>Daniel<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 12, 2015 at 9:22 PM, Thayer Young <span dir="ltr"><<a href="mailto:thayeray@yahoo.com" target="_blank">thayeray@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div>W<span>ith regards to the size of DEM, if you can get the command to run it may take several days to finish, this is more than twice the size of the Washington State DEM that took the authors 33 hours in 2003 (Arge, Chase, Halpin, Toma, Urban, Vitter, Wickremesinghe Efficient Flow Computation on Massive Grid Terrain Datasets </span>Geoinformatica
Volume 7 Issue 4, December 2003
<span>Pages 283 - 313
). My mid-2014 computer runs at about twice the speed quoted in the paper.</span></div><div dir="ltr"><br></div><div dir="ltr">Did you r.recode it to make it smaller? In flat areas you need the data contained after the decimal point to allow the flow a chance to make it down hill, otherwise you can get streams going no where near where they do in real life. I have never tried running r.terraflow on an integer raster, I know that it works on decimal rasters.<br></div><div dir="ltr"><br><span></span></div><div>-Thayer</div><div><br></div><div><br></div><div> <br></div><div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div> <hr size="1"><font face="Arial"><b><span style="font-weight:bold"></span></b></font><br>Date: Mon, 12 Jan 2015 09:59:40 -0200<br>From: Daniel Victoria <<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>><br>To: grass <<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>><br>Subject: [GRASS-user] r.terraflow on massive DEM<br>Message-ID:<br> <CA+irsJjf7xhWgU968D+4+xc2YGJ=<a href="mailto:_n4xJtP0_WeU1ZpoRTt9ng@mail.gmail.com" target="_blank">_n4xJtP0_WeU1ZpoRTt9ng@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<div><div class="h5"><br><br>Hi list,<br><br>I'm trying to run r.terraflow on a very large DEM but I wander if it's<br>__too large__.<br><br>The region dimensions are:<br>ncol=141114<br>nrow=140487<br>Data type = CELL<br><br>The map is actually a reclass map of a raster that I imported using<br>r.external.<br><br>When I run r.terraflow I get:<br><br>r.terraflow elevation=<a href="mailto:srtm_brasil@PERMANENT" target="_blank">srtm_brasil@PERMANENT</a> filled=srtm_fill<br>direction=flowdir swatershed=sink accumulation=flowacc tci=srtm_tci<br>directory=E:\terraflow_temp<br><br>WARNING: raster srtm_brasil is of type CELL_TYPE --you should use<br>r.terraflow.short<br>ERROR: [nrows=140487, ncols=141114] dimension_type overflow -- change<br>dimension_type and recompile<br>(Mon Jan 12 09:57:18 2015) Command finished (0<br>sec)<br><br>However, I don't have an r.terraflow.short command<br>I'm running Grass 7.0.0beta4 from OsGeo4W<br><br>Cheers<br>Daniel<br></div></div>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.osgeo.org/pipermail/grass-user/attachments/20150112/a27c139f/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/grass-user/attachments/20150112/a27c139f/attachment-0001.html</a>><br><br>------------------------------<span class=""><br><br>_______________________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br></span>End of grass-user Digest, Vol 105, Issue 16<br>*******************************************<br><br><br></div> </div> </div> </div></div><br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div>