[GRASS-user] value of a certain cell

Jachym Cepicky jachym.cepicky at gmail.com
Fri Mar 9 08:32:26 EST 2007


hi,

try something like this:

r.mapcalc newrast="if(row()==78 && col()==34 && yourrast>1,
yourrast+10, null())"

jachym

2007/3/9, Andruit at gmx.de <Andruit at gmx.de>:
> Hi,
> i would like to include the following in a shell script, but i don´t know the sythax
>
> I want to find out the value of a certain cell (for example col 34 row 78) and if the value is > 1
>
> then
>
> value + 10
>
> else
>
>  .....
>
> How is this possible?
>
> Thank you
>
> Andi
> --
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
>


-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub




More information about the grass-user mailing list