[GRASS-user] How to print a table with the values of a given raster layer aggregated by a second raster layer ?

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Mon Sep 19 10:58:19 PDT 2016


Hei Antonello,

Have a look at r.univar (https://grass.osgeo.org/grass70/manuals/r.univar.html)
And the zone option.

Cheers
Stefan

From: grass-user [mailto:grass-user-bounces at lists.osgeo.org] On Behalf Of Antonello Lobianco
Sent: 19. september 2016 18:42
To: grass-user <grass-user at lists.osgeo.org>
Subject: [GRASS-user] How to print a table with the values of a given raster layer aggregated by a second raster layer ?


Let's say in grass I have a raster layer "regionId" and a raster layer "forestArea".

In the regionId I have stored the ids of the regions, in the forestArea I stored the square km of forest within the pixel.

How can I print a table summing up the forest area by region, that is the sum of the values of a layer aggregated ("group by") by a second layer ?



Cheers,

  Antonello




--
Antonello Lobianco
AgroParisTech, Laboratoire d'Economie Forestière
14 Rue Girardet - 54000 Nancy, France
Tel: +33.383396865
Email: antonello.lobianco at nancy.inra.fr<mailto:antonello.lobianco at nancy.inra.fr>
http://antonello.lobianco.org<http://antonello.lobianco.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160919/2ab0cfcc/attachment-0001.html>


More information about the grass-user mailing list