<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 10/19/2010 04:03 PM, Monica Buescu wrote:
<blockquote
 cite="mid:AANLkTikCx7CEe_hgeqmKLUkigRJkKs-SRdoqPcQUa_q=@mail.gmail.com"
 type="cite">Hi Mich
  <div>Thanks for the reply. I think it has worked but everytime I try
to open, my winGRASS goes "bananas".</div>
</blockquote>
Hope you get some whipped cream with that ;-)<br>
<br>
<blockquote
 cite="mid:AANLkTikCx7CEe_hgeqmKLUkigRJkKs-SRdoqPcQUa_q=@mail.gmail.com"
 type="cite">
  <div>Just to sum what I have done</div>
  <div>1- Import a xyz ASCII file that is a float with a range of
[166297.00 - 20855944.0] (not all values are used) and&nbsp;Rows: &nbsp; &nbsp; &nbsp; &nbsp;
4655 ;Columns: &nbsp; &nbsp; &nbsp;4520 &nbsp;.</div>
</blockquote>
<br>
About 20,000,000 cells. That should be OK.<br>
Do you know how many different values are actually in the data?<br>
<blockquote
 cite="mid:AANLkTikCx7CEe_hgeqmKLUkigRJkKs-SRdoqPcQUa_q=@mail.gmail.com"
 type="cite">
  <div>2- I did r.mapcalc int() to this file that gets the range
of&nbsp;[166297 &nbsp;20855944].</div>
  <div>QUESTION: can I apply int to a FLoat with values as big as this?</div>
</blockquote>
An integer raster is represented by 32 bit signed integer values i.e.
from (about) -2 billion to +2 billion. So you're OK here.<br>
<br>
<blockquote
 cite="mid:AANLkTikCx7CEe_hgeqmKLUkigRJkKs-SRdoqPcQUa_q=@mail.gmail.com"
 type="cite">
  <div>3- I did r.mode base=int_base coverage=&nbsp;11073_B@PERMANENT (it's
a high-resolution image) output=output1</div>
  <div><br>
  </div>
  <div>Ok it runs (it takes some time as expected)</div>
  <div>Thern if I try to display it freezes... Even If I just try <a
 moz-do-not-send="true" href="http://r.info">r.info</a> output1 it also
freezes.</div>
  <div><br>
  </div>
</blockquote>
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>
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>
Then try displaying the output2.<br>
<br>
<blockquote
 cite="mid:AANLkTikCx7CEe_hgeqmKLUkigRJkKs-SRdoqPcQUa_q=@mail.gmail.com"
 type="cite">
  <div>Any thoughts aboutt this? (Thanks Micha)</div>
  <div><br>
  <div class="gmail_quote">On Tue, Oct 19, 2010 at 2:14 PM, Micha
Silver <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:micha@arava.co.il">micha@arava.co.il</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
    <div class="h5">Monica Buescu wrote:<br>
    <br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greetings<br>
      <br>
This new topic is related with <br>
      <br>
I need to calculate mode for a base map that is composed by float
values.<br>
r.mode base=base@PERMANENT cover=11073_B@PERMANENT output=saida &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
And I get:<br>
ERROR: reading r.stats output<br>
ERROR: No rules specified<br>
      <br>
This means that I'm not being able to apply this function just because
my base map is a Float. Any ideas of how to fix this?<br>
    </blockquote>
    </div>
    </div>
How about r.mapcalc base_integer=int(base) ?<br>
    <br>
The base map should be integer (category ) values, where the mode is
calculated for all cells with the same cat value, so it indeed should
be an integer raster.<br>
    <br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <br>
Thanks<br>
Monica<br>
      <br>
This mail was received via Mail-SeCure System.<br>
------------------------------------------------------------------------<br>
      <br>
_______________________________________________<br>
grass-user mailing list<br>
      <a moz-do-not-send="true" href="mailto:grass-user@lists.osgeo.org"
 target="_blank">grass-user@lists.osgeo.org</a><br>
      <a moz-do-not-send="true"
 href="http://lists.osgeo.org/mailman/listinfo/grass-user"
 target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
      <br>
This mail was received via Mail-SeCure System.<br>
      <br>
      <br>
&nbsp;<br>
    </blockquote>
    <br>
  </blockquote>
  </div>
  <br>
  </div>
  <br>
This mail was received via Mail-SeCure System.<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Micha Silver
Arava Development Co. +972-52-3665918
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
 
</pre>
</body>
</html>