<div dir="ltr">Hi, I'm a PhD student in Italy and I am a new user of GRASS.<div style>I have a problem in a weighted average with r.mapcalc.</div><div style>There are 3 raster map (areas of species), with different extent but the same resolution, area has value 1, outside is null *.</div>
<div style>I would like to sum these areas with different weights (10, 9 and 4), then divide for the sum of weights (23), generating a float, and I have used this formula:</div><div style><br></div><div style>(10.*if(isnull(Fraxinus_excelsior_raster@Phalaen), 0, 1)+9.*if(isnull(Fraxinus_angustifolia_raster@Phalaen), 0, 1) +4.*if(isnull(Fraxinus_ornus_raster@Phalaen), 0, 1))/23.<br>
</div><div style><br></div><div style>The resulting map have only 4 rectangles but it considers the sum of all the map (null values comprised).</div><div style><br></div><div style>How could I resolve the problem?</div><div style>
Thanks a lot!!!</div><div style><br></div><div style>Elisa</div><div style><br></div><div style><br></div></div>