[GRASS-user] Problems with r.mapcalc
Elisa Dal Maso
dalmaso.elisa at gmail.com
Tue Jul 16 06:28:48 PDT 2013
Hi, I'm a PhD student in Italy and I am a new user of GRASS.
I have a problem in a weighted average with r.mapcalc.
There are 3 raster map (areas of species), with different extent but the
same resolution, area has value 1, outside is null *.
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:
(10.*if(isnull(Fraxinus_excelsior_raster a Phalaen), 0,
1)+9.*if(isnull(Fraxinus_angustifolia_raster a Phalaen), 0, 1)
+4.*if(isnull(Fraxinus_ornus_raster a Phalaen), 0, 1))/23.
The resulting map have only 4 rectangles but it considers the sum of all
the map (null values comprised).
How could I resolve the problem?
Thanks a lot!!!
Elisa
-------------- parte successiva --------------
Un allegato HTML ? stato rimosso...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130716/e745c764/attachment-0001.html>
-------------- parte successiva --------------
Un allegato non testuale ? stato rimosso....
Nome: Area 1.jpg
Tipo: image/jpeg
Dimensione: 39776 bytes
Descrizione: non disponibile
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130716/e745c764/attachment-0004.jpg>
-------------- parte successiva --------------
Un allegato non testuale ? stato rimosso....
Nome: Area 2.jpg
Tipo: image/jpeg
Dimensione: 41613 bytes
Descrizione: non disponibile
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130716/e745c764/attachment-0005.jpg>
-------------- parte successiva --------------
Un allegato non testuale ? stato rimosso....
Nome: Area 3.jpg
Tipo: image/jpeg
Dimensione: 34410 bytes
Descrizione: non disponibile
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130716/e745c764/attachment-0006.jpg>
-------------- parte successiva --------------
Un allegato non testuale ? stato rimosso....
Nome: Result map.jpg
Tipo: image/jpeg
Dimensione: 33592 bytes
Descrizione: non disponibile
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130716/e745c764/attachment-0007.jpg>
More information about the grass-user
mailing list