Just one question: is it possible to &quot;count&quot; number of cells with a certain value (or nulls) from one scale that are being used to calculate each value pixel of the target scale?<div>Thanks<br><div><br><br><div class="gmail_quote">
2011/6/22 Glynn Clements <span dir="ltr">&lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
katrin eggert wrote:<br>
<br>
&gt; I just one to confirm one thing. If I&#39;m using r.resamp.stats with<br>
&gt; *mode *option.<br>
&gt; If the most frequent value is a null, will i have a null value in the ouput?<br>
<br>
</div>No.<br>
<br>
With the -n option, the output is null if any input cell is null.<br>
Without the -n option, most aggregates (including &quot;mode&quot;) ignore null<br>
cells; you&#39;ll only get a null result if all input cells are null.<br>
<br>
IIRC, the only reason that nulls are retained in the array passed to<br>
the aggregate functions is that some of them (e.g. interspersion,<br>
regression) consider the cell&#39;s position within the array, and having<br>
the caller discard nulls beforehand would interfere with this.<br>
<font color="#888888"><br>
--<br>
Glynn Clements &lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;<br>
</font></blockquote></div><br></div></div>