[GRASS-user] r.reclass rounds up values

Hi,
I used r.slope.aspect to create an aspect raster ´file. Now I would like to reclassify it into different Categorys e.g.

22.5 thru 67.5 = 1 Northeast
67.5 thru 112.5 = 2 East

and so on....

But using r.reclass always rounds up the desired values

22.5 thru 67.5 = 1 Northeast

23.00000 rounded up to 23
68.00000 rounded up to 68

Is there any way to solve this problem?

I´m using Grass 6.0

Thanx

--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

The simplest way is to use r.mapcalc to multiply the value for 10 (or 1000
if you need more precision) before reclass.
Another much more complicated way is: r.mapcalc "recmap=if(aspect >= 22.5 &&
aspect < 67.5,1,if(aspect >=67.5 && aspect < 112.5,2,if( ..and so on
I think the first solution is better.

Regards

A. Clerici

-----Messaggio originale-----
Da: grassuser-bounces@grass.itc.it
[mailto:grassuser-bounces@grass.itc.it] Per conto di Andi Jochem
Inviato: mercoledì 21 febbraio 2007 15.32
A: grassuser@grass.itc.it
Oggetto: [GRASS-user] r.reclass rounds up values

Hi,
I used r.slope.aspect to create an aspect raster ´file. Now I
would like to reclassify it into different Categorys e.g.

22.5 thru 67.5 = 1 Northeast
67.5 thru 112.5 = 2 East

and so on....

But using r.reclass always rounds up the desired values

>22.5 thru 67.5 = 1 Northeast
23.00000 rounded up to 23
68.00000 rounded up to 68
>

Is there any way to solve this problem?

I´m using Grass 6.0

Thanx

--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser