r.stats (grass5)

DIETER LEHMANN lehmann at fh-nuertingen.de
Tue May 9 06:47:10 EDT 2000


Hi Markus,
o.k. but If I want only the unique values?
It's working with r.stats -1 DEM | sort -u

but this is terrible slow. Is there a other possibility to do that?

Dieter


Date sent:      	Tue, 9 May 2000 11:49:55 +0100
From:           	Markus Neteler <neteler at geog.uni-hannover.de>
To:             	DIETER LEHMANN <lehmann at fh-nuertingen.de>
Subject:        	Re: r.stats (grass5)

> Hi Dieter,
> 
> On Tue, May 09, 2000 at 11:16:18AM +0200, DIETER LEHMANN wrote:
> > Hello,
> > short question: how is it possible to get the discret raster-values of a
> > map? My map has the following values: 0.2 0.6 0.8...
> > 
> > r.stats only gives me the ranges.
> 
> this is quite easy:
> r.stats -1 dgm25
> 177.0060272217
> 176.5745239258
> 176.0958557129
> 174.9282073975
> 173.8042144775
> ...
> 
> or with coordinates:
> r.stats -1g dgm25
> 3571612.5 5765037.5 144.0717010498
> 3571637.5 5765037.5 144.0996246338
> 3571662.5 5765037.5 144.0055541992
> 3571687.5 5765037.5 144.1030426025
> 3571712.5 5765037.5 144.6298828125
> 3571737.5 5765037.5 145.0991973877
> 
> Check for NULL suppresion:
>   -n   Suppress reporting of any NULLs
>   -N   Suppress reporting of NULLs when all values are NULL
> 
> 
> Kind regards
> 
>  Markus Neteler





More information about the grass-user mailing list