Greetings
I’m doing a reclass of rasters based on a rule file. In this file I’m doing a correspondence between values (1,2… 100) to other integer values.
Is it possible to do this but instead to done this to Numbers do this to Strings just like
1 = “Agriculture”
2,3,4= “Forest”
?
Thanks
Franz
Franz Schiller wrote:
I'm doing a reclass of rasters based on a rule file. In this file I'm doing
a correspondence between values (1,2... 100) to other integer values.
Is it possible to do this but instead to done this to Numbers do this to
Strings just like
1 = "Agriculture"
2,3,4= "Forest"
You can associate category labels with each category using
r.categories. You can't "reclass" to a string.
--
Glynn Clements <glynn@gclements.plus.com>
Hello Glynn
Thanks for the reply. About using r.categories, can I apply it to a raster map and then export it as a “normal” raster?
Thanks
Franz
On Fri, Nov 12, 2010 at 6:18 AM, Glynn Clements <glynn@gclements.plus.com> wrote:
Franz Schiller wrote:
I’m doing a reclass of rasters based on a rule file. In this file I’m doing
a correspondence between values (1,2… 100) to other integer values.
Is it possible to do this but instead to done this to Numbers do this to
Strings just like
1 = “Agriculture”
2,3,4= “Forest”
You can associate category labels with each category using
r.categories. You can’t “reclass” to a string.
–
Glynn Clements <glynn@gclements.plus.com>
Franz Schiller wrote:
Thanks for the reply. About using r.categories, can I apply it to a raster
map and then export it as a "normal" raster?
category labels are attached to an existing map; there's nothing to
export.
It might help if you explain what your ultimate goal is.
--
Glynn Clements <glynn@gclements.plus.com>