[GRASS5] r.info bug with reclassed maps?

Helena hmitaso at unity.ncsu.edu
Sun Nov 25 15:23:38 EST 2001


Markus Neteler wrote:

> Hi again,
>
> also r.info seems to go mad with reclassed maps.
> Can anyone confirm this?

Markus, what do you have wrong?
I have found that it does not report the number of categories for
reclassed
FP maps, e.g.

GRASS:> r.info lsfactor
 +----------------------------------------------------------------------------+

 | Layer:    lsfactor                       Date: Fri Nov  2 19:08:53
2001    |
 |
 | Title:    1.4*exp(uparea/22.1,0.4)*exp(sin(slope15)/0.09,1.3) (
lsfactor ) |
 |----------------------------------------------------------------------------|

 |   Type of Map:  cell                Number of Categories:
315              |
 |   Data Type:
FCELL                                                      |

However, I have defined only 5 categories - so it appears that it is
using the values in the category file for the number
of categories. Without defining categories the number of categories for
FP map is 255.
But r.info works correctly with the old spearfish files so it appears
that it has a problem only with reclassed
FP maps.

Helena

GRASS:> r.report -C lsfactor un=p
r.stats:  100%
|-----------------------------------------------------------------------------|

|MAP: 1.4*exp(uparea/22.1,0.4)*exp(sin(slope15)/0.09,1.3) (lsfactor in
helena)|
|-----------------------------------------------------------------------------|

|                        Category Information
|   %  |
|     #|description                                                    |
cover|
|-----------------------------------------------------------------------------|

|   0-1|stable . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
13.83|
|   1-5|low. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
35.23|
|  5-10|moderate . . . . . . . . . . . . . . . . . . . . . . . . . . . |
24.78|
| 10-50|high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
25.93|
|50-315|severe . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|  0.23|
|-----------------------------------------------------------------------------|

|TOTAL
|100.00|
:


also r.info seems to go mad with reclassed maps.
Can anyone confirm this?

BTW: I have moved the search engine to grass.itc.it now
(thanks to Bernhard Reiter for his help). We have a fast
engine now, with full referencing to the "grass5" mailing
list.

Markus
_______________________________________________
grass5 mailing list
grass5 at grass.itc.it
<A
HREF="http://grass.itc.it/mailman/listinfo/grass5">http://grass.itc.it/mailman/listinfo/grass5</A>

</PRE></BLOCKQUOTE><!-- selection start --><!-- selection end
-->&nbsp;</html>


>
>
> BTW: I have moved the search engine to grass.itc.it now
> (thanks to Bernhard Reiter for his help). We have a fast
> engine now, with full referencing to the "grass5" mailing
> list.
>
> Markus
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5




More information about the grass-dev mailing list