yes, r.reclass
is for reclassing thematic rasters, like the Corine Land Cover. It will work for your data, but the routine will cast the float numbers to integers before doing the reclass, so it might lead to unexpected results.
What you are looking for is r.recode
The rules are defined in many formats, one of those is the following:
old_low:old_high:new_val (i.e. new_high == new_low)
So, based on your question the rules should be something along this lines:
rules.txt
1:1000:1
1000:2000:2
2000:3000:3
3000:4000:4
4000:5000:5
5000:6000:6
6000:7000:7
7000:8000:8
8000:9000:9
9000:*:10
So the command should be like this:
r.recode input=oldmap output=newmap rules="/path/to/rules.txt"
Afterwards you can use the r.reclass
module for the newmap
you created.
Yes another way exists.
Just use gdal_calc.py
For example, below will convert the values below 3 to 0 and above 3 to 1. You can use equals as well.
gdal_calc.py -A C:temp\raster.tif --outfile=result.tiff --calc="0*(A<3)" --calc="1*(A>3)"
Best Answer
gdal_calc
can be used for a reclassification of many classes.For example, you can change values below (and equal) 12 to 10, values of 20, 30, 40, 50 stays the same, and values between above 50 and 62 are changed to 60: