[GRASS-user] Change NaN to 0 with r.mapcalc(or whatever)?

Hamish hamish_b at yahoo.com
Tue May 20 23:34:28 EDT 2008


Bob wrote:
> Is there a way to r.mapcalc or some other command to change
> NaN values in rasters to another value?


If you mean real "nan" not grass NULL values, see this thread from the grass-dev list from a few days ago:
  http://thread.gmane.org/gmane.comp.gis.grass.devel/27160
and the question of where they came from.


For grass NULL values, r.null is your friend, or isnull(mapname) in r.mapcalc.


Hamish




      



More information about the grass-user mailing list