[GRASS-user] Removing 0 values from raster map

Milton Cezar Ribeiro miltinho.astronauta at gmail.com
Fri Aug 21 19:21:09 EDT 2009


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 luck,

miltinho

2009/8/21 Markus Neteler <neteler at osgeo.org>

> On Sat, Aug 22, 2009 at 12:33 AM, stephen sefick<ssefick at 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 values.  I can not firgure out how to do this.  Any help
> > is greatly appreciated
>
> You could try this:
> http://grass.osgeo.org/grass64/manuals/html64_user/r.fillnulls.html
>
> Or r.neighbors with "mode" and a large moving window?
>
> Markus
>  _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090821/acbe4c39/attachment-0001.html


More information about the grass-user mailing list