[GRASS5] r.stats

I have FP raster for which r.stats -c prints between others
687.742414-700.250492 90
if I run r.mapcalc
"pok=if(dem_orig>687,if(dem_orig<701,dem_orig,null()),null())"
output pok has all cells null.
I guess that r.stats does not work.

Radim

I have FP raster for which r.stats -c prints between others
687.742414-700.250492 90
if I run r.mapcalc
"pok=if(dem_orig>687,if(dem_orig<701,dem_orig,null()),null())"
output pok has all cells null.
I guess that r.stats does not work.

what does r.univar (the C version) say?

Hamish

On 8/30/05, Hamish <hamish_nospam@yahoo.com> wrote:

> I have FP raster for which r.stats -c prints between others
> 687.742414-700.250492 90
> if I run r.mapcalc
> "pok=if(dem_orig>687,if(dem_orig<701,dem_orig,null()),null())"
> output pok has all cells null.
> I guess that r.stats does not work.

what does r.univar (the C version) say?

Hamish

Why r.univar? There are other ranges in map
....
375.040443-387.548522 6
475.105074-487.613153 3
687.742414-700.250492 90
700.250492-712.758571 7260
712.758571-725.26665 12319
....

And what is 'C version'?

total null and non-null cells: 215292580
total null cells: 117000232

Of the non-null cells:
----------------------
n: 98292348
minimum: -12.71
maximum: 3176.85
range: 3189.56
mean: 2050.24
standard deviation: 486.501
variance: 236683
variation coefficient: 23.729 %
sum: 2.01523e+11

Radim