Indeed, I run *r.univar* and the max value is 101812!!!
So using:
r.recode input=dist_coastline output=recoded_file 
0:101812:255:0

the range of the output file was 0-255

I also checked Markus method.
eval `r.univar -g map=myrast` returns max value = 101812.211145335

I re-run r.recode using 101812.211145335 as max value.

Running r.univar for the two output files I get defferent results (but very
simiral):

Output from Markus method:



Output from Moritz method:








--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-to-rescale-tp7169303p7177559.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to