<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Markus M,<br><br>Thanks for answering. I'll try to use the default 500mb. But I still think these differences in the times are too big. I am not using a big map (just 95mb, it would fit 5 times in the RAM memory) and a rather regular PC. On this email (<a href="http://lists.osgeo.org/pipermail/grass-dev/2008-October/040669.html">http://lists.osgeo.org/pipermail/grass-dev/2008-October/040669.html</a>) you said r.viewshed took 18 seconds, but for which map size? What are your computer configurations? If you ever made other tests on r.viewshed times, would you mind to show me the results? <br><br>Sorry for making so much questions, and thank you for the attention.<br><br>Chaulio Ferreira.<br><br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Tue, 12 Jun 2012 23:59:58 +0200<br>> Subject: Re: [GRASS-user] r.viewshed add-on is taking too long<br>> From: markus.metz.giswork@googlemail.com<br>> To: chaulio@hotmail.com<br>> CC: grass-user@lists.osgeo.org<br>> <br>> On Tue, Jun 12, 2012 at 9:52 PM, Chaulio Ferreira <chaulio@hotmail.com> wrote:<br>> > Hello everyone,<br>> ><br>> > I've been trying to compute some viewsheds using the r.viewshed module<br>> > (available in http://grass.osgeo.org/wiki/GRASS_AddOns), but it's taking to<br>> > long to finish.<br>> ><br>> > I ran this module on a 5000x5000 (95mb) raster grid and it took 3min 17sec<br>> > to finish. I have seen some articles where it's said that this module is<br>> > capable of computing raster grids bigger than this one in 18 seconds. I also<br>> > tested it on a bigger raster grid (33000x33000, 4.05gb), and it took almost<br>> > 3 days to finish!<br>> ><br>> > So, I was wondering if I've been doing something wrong, because the<br>> > execution times seem to be much bigger than the expected.<br>> ><br>> > I'm using an Intel Core 2 duo 2.93GHz, with 4GB RAM and Ubuntu 10.04 32bits.<br>> > My GRASS version is GRASS 6.4.3svn. The command line I used was:<br>> ><br>> > r.viewshed -b --overwrite input=r9_5000@PERMANENT output=vs_r9_5k<br>> > coordinate=2500,2500 obs_elev=50 tgt_elev=50 memory=2000<br>> <br>> Since you are using a 32 bit OS, the amount of memory given to<br>> r.viewshed (2000 MB) might be too large. Try with the default 500 MB.<br>> <br>> The speed of r.viewshed depends on several factors: CPU speed,<br>> available memory and disk IO speed. For very large input maps, disk IO<br>> speed is the limiting factor, as long as the amount of memory<br>> specified with the memory option is below the available free [0]<br>> memory.<br>> <br>> Markus M<br>> <br>> [0] man free<br>> <br>> ><br>> > I used coordinate=2500,2500 because the terrain bounds are X:0~5000 and<br>> > Y:0~5000 and I wanted the observer to be sited at the center of it. I had<br>> > tried to import this same raster grid (using r.in.bin) with smaller bounds<br>> > (X:0~50 and Y:0~50) and to run r.viewshed with coordinate=25,25, but I<br>> > received the following assertion error:<br>> ><br>> > Determine visibility...<br>> > r.viewshed: statusstructure.cpp:73: float get_vertical_angle(Viewpoint,<br>> > StatusNode, surface_type, int): Assertion `fabs(sn.dist2vp) > 0.001' failed.<br>> > Aborted<br>> ><br>> ><br>> > Does anyone use this Add-on and has some running times to show me and<br>> > compare with mine? Or does someone knows if I am doing something wrong?<br>> ><br>> > Thanks,<br>> ><br>> > Chaulio Ferreira<br>> ><br>> > _______________________________________________<br>> > grass-user mailing list<br>> > grass-user@lists.osgeo.org<br>> > http://lists.osgeo.org/mailman/listinfo/grass-user<br>> ><br></div> </div></body>
</html>