Thank Glynn. But how can I retrieve min and max using a Python Script? <div><br><br><div class="gmail_quote">2010/10/25 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><div></div><div class="h5"><br>
Kim Besson wrote:<br>
<br>
> I have a python script where I need to check if an input raster map has any<br>
> valid pixel (at least one pixel that is not null). How can I check this<br>
> (easy and quick way?) in order to be integrated in my Script?<br>
<br>
</div></div>Check the range:<br>
<br>
$ r.mapcalc --o 'foo = null()'<br>
$ <a href="http://r.info" target="_blank">r.info</a> -r foo<br>
min=NULL<br>
max=NULL<br>
<br>
The range can only have min=max=NULL if there are no non-null cells.<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>