[GRASS-user] Using r.quantile result with r.recode
Pedro Venâncio
pedrongvenancio at yahoo.com
Sun Apr 14 06:58:49 PDT 2013
Hi,
I have a doubt about using the r.quantile output with r.recode.
r.quantile returns the upper limit value corresponding to each class, right?
But r.recode uses r.quantile result as closed interval in the lower value and open interval in the upper value. In other words, assuming that r.quantile returns the following result:
2.000000:6.000000:1
6.000000:8.000000:2
8.000000:12.000000:3
12.000000:20.000000:4
20.000000:872.727295:5
r.recode will use these data as follows:
[2.000000:6.000000[ -> 1
[6.000000:8.000000[ -> 2
[8.000000:12.000000[ -> 3
[12.000000:20.000000[ -> 4
[20.000000:872.727295[ -> 5
But this is not correct. According to quantiles method, the reclassification should be as follows:
]2.000000:6.000000] -> 1
]6.000000:8.000000] -> 2
]8.000000:12.000000] -> 3
]12.000000:20.000000] -> 4
]20.000000:872.727295] -> 5
or am I wrong?
Thanks!
Best regards,
Pedro Venâncio
More information about the grass-user
mailing list