<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body style="direction: ltr;" bidimailui-charset-is-forced="true"
bidimailui-detected-decoding-type="latin-charset" text="#000000"
bgcolor="#ffffff">
On 20/10/2010 12:18, Monica Buescu wrote:
<blockquote
cite="mid:AANLkTikPxpG9tn1x9Kq2UUVbxqeXr2xZ8pH-Ugs2aXG=@mail.gmail.com"
type="cite">Hello
<div><br>
</div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
<div class="im"><br>
</div>
About 20,000,000 cells. That should be OK.<br>
Do you know how many different values are actually in the
data?</div>
</blockquote>
<div>Yes... In this case is 6608. In other examples it can be
3000 or 2000. Why?</div>
</div>
</div>
</blockquote>
Just to understand how complex the calculation of r.mode has to be.<br>
<blockquote
cite="mid:AANLkTikPxpG9tn1x9Kq2UUVbxqeXr2xZ8pH-Ugs2aXG=@mail.gmail.com"
type="cite">
<div>
<div class="gmail_quote">
<div> </div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
I'd try two things here. First can you change to a smaller
region and
rerun r.mode and try to display the results?<br>
</div>
</blockquote>
<div>Yes. It worked with a much smaller image.</div>
</div>
</div>
</blockquote>
Ah, good.<br>
<blockquote
cite="mid:AANLkTikPxpG9tn1x9Kq2UUVbxqeXr2xZ8pH-Ugs2aXG=@mail.gmail.com"
type="cite">
<div>
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
Second: the result of r.mode is a "reclass" of the
original values. So
I suppose it has to be recalculated each time you want to
display. You
can make that reclass map into a permanent raster by
running:<br>
r.mapcalc "output2 = output1"<br>
</div>
</blockquote>
<div><br>
</div>
<div>I tried this and after 15 minutes running I gave up. Can
this be related with memory restrictions?</div>
</div>
</div>
</blockquote>
Well, that's not good. Yes, maybe a problem with disk space or
memory? l'll have to leave to someone more knowledgeable to answer
here. <br>
If you just let it run for longer will it finish?<br>
<blockquote
cite="mid:AANLkTikPxpG9tn1x9Kq2UUVbxqeXr2xZ8pH-Ugs2aXG=@mail.gmail.com"
type="cite">
<div>
<div class="gmail_quote">
<div> </div>
</div>
</div>
</blockquote>
</body>
</html>