<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>map algebra: sums including null values</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi,<BR>
<BR>
I've just started using GRASS and QGIS. I'm using r.mapcalculator to sum groups of partially overlapping rasterized polygons, with value 1 inside and null outside the polygons. I want each pixel in the output (sum) map to have the value of the number of polygons overlapping at that point, so I'm just summing them up (A+B+C...). The problem is that the sum is only performed where all polygons overlap: if there is a null value at one site, the resulting sum is null... Is there a way to tell GRASS to consider null values as zeroes when performing the sum? Or do I really have to transform null cells into zero-value cells in all rasters before summing them up? (It's a lot of maps...)<BR>
<BR>
I'd appreciate some help. Cheers,<BR>
Marcia<BR>
<BR>
- - -<BR>
A. Márcia Barbosa<BR>
Dept. Biological Sciences, North 2.1<BR>
Imperial College at Silwood Park<BR>
Ascot, Berkshire SL5 7PY<BR>
United Kingdom<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>