[GRASS5] region growing - r.mapcalc bug?
Jachym Cepicky
jachym.cepicky at centrum.cz
Wed Mar 2 04:38:45 EST 2005
On Wed, Mar 02, 2005 at 08:08:45AM +0100, Jachym Cepicky wrote:
> if(seed && (raster[-1,-1]> raster[1,1]),sead+1,\
> if(seed && (raster[-1,0] > raster[1,0]),sead+1,\
> if(seed && (raster[-1,1] > raster[1,-1]),sead+1,\
> if(seed && (raster[0,-1] > raster[0,1]),sead+1,\
> if(seed && (raster[0,1] > raster[0,-1]),sead+1,\
> if(seed && (raster[1,-1] > raster[-1,1]),sead+1,\
> if(seed && (raster[1,0] > raster[-1,0]),sead+1,\
> if(seed && (raster[1,1] > raster[-1,-1]),sead+1,null()))))))))
>
sorry, I need
if(seed[-1,-1] && (raster[-1,-1]> raster[1,1]),seed[-1,-1]+1,\
if(seed[-1,0] && (raster[-1,0] > raster[1,0]),seed[-1,-1]+1,\
if(seed[-1,1] && (raster[-1,1] > raster[1,-1]),seed[-1,1]+1,\
if(seed[0,-1] && (raster[0,-1] > raster[0,1]),seed[0,-1]+1,\
if(seed[0,1] && (raster[0,1] > raster[0,-1]),seed[0,1]+1,\
if(seed[1,-1] && (raster[1,-1] > raster[-1,1]),seed[1,-1]+1,\
if(seed[1,0] && (raster[1,0] > raster[-1,0]),seed[1,0]+1,\
if(seed[1,1] && (raster[1,1] > raster[-1,-1]),seed[1,1]+1,null()))))))))
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://www.fle.czu.cz/~jachym/gnupg_public_key/
More information about the grass-dev
mailing list