<div dir="ltr"><div><div><div><div><div><div><div>Hi Hamish,<br><br><a href="http://r.info">r.info</a><br>------<br><a href="http://r.info">r.info</a> -r map=nullmap@PERMANENT                                       <br>min=-nan<br>
max=-nan<br>WARNING: Unable to read fp range file for <nullmap@PERMANENT><br>(Thu Mar  7 13:15:05 2013) Command finished (0 sec)                        <br><br></div>That is a module level way, i was wondering about a C function like the one below:<br>
<br></div><div>/*A fatal error when NULL map*/<br></div>if(Rast_is_null_map(mapname, mapset)<0){<br></div>   G_fatal("Input file has only null values");<br></div>} else {<br></div>  /* do some useful thing */<br>
}<br><br><br><div>/*A discarding map error when NULL map*/<br>
</div>if(Rast_is_null_map(mapname, mapset)<0){<br>
   G_warning("Input file %s has only null values", mapname);<br></div>   /*do not load that map*/<br></div>   /*remove that map from the list of temporal iteration*/<br><div><div>
} else {<br>
  /* do some useful thing */<br>
}<br><br><br><br>
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 March 2013 13:12, Hamish <span dir="ltr"><<a href="mailto:hamish_b@yahoo.com" target="_blank">hamish_b@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yann:<br>
<div class="im">> In the same way as there is a pixel based function to assess a<br>
> NULL pixel value, it would be very interesting to have a<br>
> function to test an all NULL raster map status.<br>
<br>
</div>see '<a href="http://r.info" target="_blank">r.info</a> -r' for overall map, or r.univar for within-region window.<br>
<br>
<br>
?<br>
<span class="HOEnZb"><font color="#888888">Hamish<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><div>Yann Chemin<br></div><div>Researcher@IWMI<br></div>Skype/FB: yann.chemin<br></div><br></div>
</div>