[GRASS-user] How to check if a raster has a NULL value

Robert Nuske rsn.mailinglists at gmail.com
Tue Jun 18 04:54:26 PDT 2019


Hi Listers,

r.fillnulls exits with an error if the input map has no holes. 
r.fillnulls one step in a bash script. The processing is stopped if 
r.fillnulls writes no output because of an error.

Thus i would like to check if any holes need to be filled. If this is 
the case run r.fillnulls and if not just copy input to output map name.

Is there a handy command which reports if there are any NULLs in the 
raster map. The output of the command shall be used in a bash if 
construction.


thanks
   robert





More information about the grass-user mailing list