[GRASS-dev] [GRASS GIS] #2053: r.recode: 0.0 or 1.0 as limits do not seem to be taken into account (was: r.recode is buggy when minimum "from=0.0")
GRASS GIS
trac at osgeo.org
Mon Dec 23 06:03:46 PST 2013
#2053: r.recode: 0.0 or 1.0 as limits do not seem to be taken into account
------------------------------------------+---------------------------------
Reporter: nikosa | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: unspecified
Keywords: r.recode, DCELL, CELL, rules | Platform: Unspecified
Cpu: Unspecified |
------------------------------------------+---------------------------------
Comment(by mlennert):
I'm having a similar (probably related) issue:
Given a raster map with a classic normalized difference index ranging
theoretically from -1 to 1. The exact values are:
{{{
> r.univar mymap
minimum: -0.971429
maximum: 0.766129
}}}
When I recode using the following rules:
{{{
-1.0:0:0.0
0:1.0:1.0
}}}
I get
{{{
> r.stats -c mybinarymap
0 5804
1 9487108
}}}
Changing the rules to
{{{
-0.99:0.0:0
0.0:1.0:1
}}}
or
{{{
-1.0:0.0:0
0.0:0.99:1
}}}
I get
{{{
> r.stats -c mybinarymap
0 5626374
1 3866538
}}}
Moritz
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2053#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list