DESCRIPTION

The r.reclass.attr plugin let you reclass/recode a raster layer based on values in a csv table. The csv file should include at least two columns. The first column should correspond to (part of) the raster values. The other columns should hold the reclassification values.

For each column in the csv (comma separated text) file (except the first one) a new map will be created, replacing the raster values corresponding to the first column with those in the second (3rd, 4th, etc) column.

The user can define the names of the output map(s). If only one output name is provided and the rules file contains more than two columns, the function will create output names by appending for each recode layer the corresponding column name to the output name provided by the user.

NOTES

The script uses r.recode to allow the user to reclass integer values to floating point values. However, like r.reclass you can only convert number one to one (and not like r.recode ranges of values to one value or a new range of values)

TODO

EXAMPLES

See this blog post for an example.

SEE ALSO

r.reclass, r.recode

AUTHOR

Paulo van Breugel, paulo at ecodiv.org

Last changed: $Date: 2014-12-13 09:11:08 +0100 (za, 13 dec 2014)