[GRASSLIST:4581] Re: if and docell

Gordon Keith gordon.keith at csiro.au
Tue Sep 24 19:20:58 EDT 2002


On Wed, 25 Sep 2002 02:04, Alexander Fritz wrote:
> Is there a possibility to do if then calculations in GRASS and is
> there something similar to the DOCELL command in ARCINFO?

r.mapcalc new="if(old>0,old,null())"

Is this what you are after?

Regards
Gordon

-- 

Gordon Keith
Programmer/Data Analyst
Marine Acoustics
CSIRO Marine Research
http://www.marine.csiro.au

"The next generation of interesting software will be done on Macintosh, 
not the IBM PC." 
- Bill Gates, talking to Business Week, 1984



More information about the grass-user mailing list