[GRASS-user] Alternative to r.stats to generate % of surface

Use r.report.

This will do exactly what you want and output to a file too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Nov 16, 2011, at 2:58 PM, <grass-user-request@lists.osgeo.org> wrote:

Date: Tue, 15 Nov 2011 11:36:12 +0000
From: Helena Herrera <helenaherrera1980@gmail.com>
Subject: [GRASS-user] Alternative to r.stats to generate % of surface
To: grass-user@lists.osgeo.org
Message-ID:
       <CACCE9tiQOu_A2Xt82ZdTLwM28eMX8ze=0ZkDHSy97KHfi9n_Ww@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Greetings

I want to calculte % of surface in a raster map for each Integer class
value. The thing is that I'm, using r.stats but the sum % values is always
much more (104 or 102 or 105). Is there any other (more precised) method to
calculate this ?
THanks
Helena

See? I knew there was a much better way :slight_smile:

On Tue, Nov 15, 2011 at 2:29 PM, Michael Barton <michael.barton@asu.edu> wrote:

Use r.report.

This will do exactly what you want and output to a file too.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Nov 16, 2011, at 2:58 PM, <grass-user-request@lists.osgeo.org> wrote:

Date: Tue, 15 Nov 2011 11:36:12 +0000
From: Helena Herrera <helenaherrera1980@gmail.com>
Subject: [GRASS-user] Alternative to r.stats to generate % of surface
To: grass-user@lists.osgeo.org
Message-ID:
<CACCE9tiQOu_A2Xt82ZdTLwM28eMX8ze=0ZkDHSy97KHfi9n_Ww@mail.gmail.com>
Content-Type: text/plain; charset=“iso-8859-1”

Greetings

I want to calculte % of surface in a raster map for each Integer class
value. The thing is that I’m, using r.stats but the sum % values is always
much more (104 or 102 or 105). Is there any other (more precised) method to
calculate this ?
THanks
Helena


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user