Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] r.reclass: no proper result if list is not ordered numerically #370

Open
neteler opened this issue Feb 23, 2020 · 0 comments
Open

Comments

@neteler
Copy link
Member

neteler commented Feb 23, 2020

Describe the bug
Feeding r.reclass with an unordered list of values like:

245 275 247 271 261 754 556 470 244 632 738 663 = 2 (High suitability)

will not lead to a proper result (NULL pixels are returned).
r.reclass only works properly when having numerically sorted the values:

244 245 247 261 271 275 470 556 632 663 738 754 = 2 (High suitability)

Maybe not a true bug but it would be helpful to auto-sort the left side values while reading them into r.reclass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant