[GRASS-user] Removing 0 values from raster map

2009-08-21 Thread stephen sefick
I have four maps that I would like to patch together. The problem is that on the boundary there are zero values after patching. I would like to get rid of these values- interpolate the values based on the surrounding values. I can not firgure out how to do this. Any help is greatly appreciated

Re: [GRASS-user] Removing 0 values from raster map

2009-08-21 Thread Markus Neteler
On Sat, Aug 22, 2009 at 12:33 AM, stephen sefickssef...@gmail.com wrote: I have four maps that I would like to patch together.  The problem is that on the boundary there are zero values after patching.  I would like to get rid of these values- interpolate the values based on the surrounding

Re: [GRASS-user] Removing 0 values from raster map

2009-08-21 Thread Milton Cezar Ribeiro
Hi stephen, May be this? g.region rast=`g.mlist pat=srtm* sep=,` r.series input=`g.mlist pat=srtm* sep=,` output=srtm_leste method=maximum of you can play with r.mapcalc to identify where is zero, and calculate the mean using [-1,-1][-1,0], [1,1] (not use [0,0]) to average (sum/8). good