[GRASS-user] using r.mapcalc

Jáchym Čepický jachym.cepicky at gmail.com
Fri Feb 9 10:03:53 EST 2007


Hi

try just this

new_map="if(map1 && map2, 3, if(map1, 2, 1))"

means:
where both maps are NULL, result will be NULL
where map2 is not null, result will be 1
where map1 is not null,  result will be 2
where both maps are not NULL, result will be 3

j

2007/2/9, Thomas Drüssler <Sommes at web.de>:
> Hello everybody
>
> please help me solving a problem concerning r.mapcalc:
> my intention is to calculate a new map consisting of two older ones. the one
> shows  digitized elements( rocks), cat values are NULL or 1,
> the other is a reclassified map(slope >50), with cat values 1 or NULL.
> so i have 4 options:
> pixels, with only digitized elements, pixels with only slope elements, pixels with both and pixels without(NULL)
> the resulting map sould consist of these 4 categories.
> i already tried r.patch, but with no success, there was only one resulting category and NULL values.
>
> thanx a lot
> thomas
> _____________________________________________________________________
> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
>
> _______________________________________________
> 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