About the sugfgestion from Luisa, of using r.mode it seems exacly what I want... But instead of using polygons I use a raster (coverage map). For me, its ok<div><br></div><div>I have tested and, I'm obtaining a bit weird error on this:</div>
<div><div>r.mode base=v0@PERMANENT cover=11073_B@PERMANENT output=test_outputv0 </div><div><br></div><div>ERROR: reading r.stats output</div><div>ERROR: No rules specified</div></div><div><br></div><div>My 11073_B is a CELL satellite image (0-1000)</div>
<div>my v0 is a FCELL raster with values that range from 1 til 50000 (but I don't have that many values only 30 of them but are dispersed between 1 and 50000.</div><div><br></div><div>Any ideas to fix this?</div><div>
THanks</div><div>Monica</div><div><br><div class="gmail_quote">On Mon, Oct 18, 2010 at 12:33 PM, Daniel Victoria <span dir="ltr"><<a href="mailto:daniel.victoria@gmail.com">daniel.victoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This should be done by v.rast.stats but, from the manual I don't think<br>
it includes mode...<br>
<div><div></div><div class="h5"><br>
On Mon, Oct 18, 2010 at 8:32 AM, Monica Buescu<br>
<<a href="mailto:monicabuescu1985@gmail.com">monicabuescu1985@gmail.com</a>> wrote:<br>
> I don't think so.. What I want is to calculate the mode (most frequent<br>
> value) of a raster file for each polygon that this raster covers. What I<br>
> will have is the most frequent raster value that falls inside each polygon.<br>
> Is kind of a univariate statistic of a raster for each polygon.<br>
> Any ideas?<br>
> (thanks Micha for your suggestion)<br>
><br>
> On Mon, Oct 18, 2010 at 10:19 AM, Micha Silver <<a href="mailto:micha@arava.co.il">micha@arava.co.il</a>> wrote:<br>
>><br>
>> On 18/10/2010 10:11, Monica Buescu wrote:<br>
>><br>
>> Greetings<br>
>> I have an image that is divided in several (>300) polygons and, using a<br>
>> data_map raster, I want to calculate the mode value from this image for each<br>
>> polygon. Is it possible? can anyone give me a tip on this?<br>
>><br>
>> Have a look at v.what.rast. That might be what you're looking for.<br>
>><br>
>> Thanks<br>
>> Monica<br>
>> This mail was received via Mail-SeCure System.<br>
>><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>
>><br>
>> This mail was received via Mail-SeCure System.<br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Micha Silver<br>
>> <a href="http://www.surfaces.co.il/" target="_blank">http://www.surfaces.co.il/</a><br>
>> Arava Development Co. +972-52-3665918<br>
><br>
><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>
><br>
><br>
</div></div></blockquote></div><br></div>