Just one question: is it possible to "count" 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"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></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>
> I just one to confirm one thing. If I'm using r.resamp.stats with<br>
> *mode *option.<br>
> 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 "mode") ignore null<br>
cells; you'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'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 <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></blockquote></div><br></div></div>