[GRASSLIST:1360] r.reclass rounds up the results

Rado Bonk bonk at fns.uniba.sk
Fri Sep 26 11:58:11 EDT 2003


Hi GRASSusers,

I thought I knew all the details of "r.reclass" but I'm experiencing
strange r.reclass behaviour now.

I have reclassified the float map into another float values map. But
during the process the command rounded up the results, and I did not get
the map with 30 categories but I only got 2 categories map (0 and 1). 

Why does r.reclass rounds up the values, and do not produce float
reclassified values? Or I am missing something.

- GRASS 5.0.2

1.  cat povap/analyses/rodtok.luky.bak|r.reclass input=dtms500
output=rodtok.luky1

2. cat rodtok.luky
0.0 thru 1.35 =  0.05
1.35 thru 2.25 =  0.08
2.25 thru 3.15 =  0.11
3.15 thru 4.05 =  0.14
4.05 thru 4.95 =  0.17
4.95 thru 5.85 =  0.20
5.85 thru 6.75 =  0.23
6.75 thru 7.65 =  0.26
7.65 thru 8.55 =  0.29
.
.

3. r.reclass output
0.500000 rounded up to 0
1.850000 rounded up to 1
0.550000 rounded up to 0
1.850000 rounded up to 1
2.750000 rounded up to 2
0.580000 rounded up to 0
2.750000 rounded up to 2
3.650000 rounded up to 3
0.610000 rounded up to 0
3.650000 rounded up to 3
4.550000 rounded up to 4
.
.

-- 
Radoslav Bonk M.S.
Dept. of Physical Geography and Geoecology
Faculty of Sciences, Comenius University
Mlynska Dolina 842 15, Bratislava, SLOVAKIA
tel: +421 905 968 127 e-mail: rbonk at host.sk




More information about the grass-user mailing list