Re: [GRASS-user] r.rescale - float instead of integer?

2011-03-25 Thread Markus Neteler
On Thu, Mar 24, 2011 at 6:07 PM, Glynn Clements wrote: > > Johannes Radinger wrote: > >> I think r.mapcalc is probably the best solution, but as I don't know the >> maximum >> value in every case (I've to process several maps), I wanted to automatize. >> Probably I've to write a script to read th

Re: [GRASS-user] r.rescale - float instead of integer?

2011-03-24 Thread Glynn Clements
Johannes Radinger wrote: > I think r.mapcalc is probably the best solution, but as I don't know the > maximum > value in every case (I've to process several maps), I wanted to automatize. > Probably I've to write a script to read the max value and parse it to the > mapcalc function. > My proble

Re: [GRASS-user] r.rescale - float instead of integer?

2011-03-24 Thread Johannes Radinger
Am 24.03.2011 um 07:34 schrieb Hamish: Johannes wrote: I think r.mapcalc is probably the best solution, but as I don't know the maximum value in every case (I've to process several maps), I wanted to automatize. Probably I've to write a script to read the max value and parse it to the map

Re: [GRASS-user] r.rescale - float instead of integer?

2011-03-23 Thread Hamish
Johannes wrote: > I think r.mapcalc is probably the best solution, but as I don't know > the maximum value in every case (I've to process several maps), I wanted > to automatize. Probably I've to write a script to read the max value and > parse it to the mapcalc function. g.mlist + 'r.info -r' in

Re: [GRASS-user] r.rescale - float instead of integer?

2011-03-23 Thread Johannes Radinger
Am 23.03.2011 um 05:29 schrieb Glynn Clements: > > Johannes Radinger wrote: > >> I try to rescale a rastermap with category values ranging from 1 to 16. >> I want to rescale them by dividing the values by the maximum value, like >> 1 --> 1/16, 10-->10/16 and 16 --> 1). I tried to do that with t

Re: [GRASS-user] r.rescale - float instead of integer?

2011-03-22 Thread Glynn Clements
Johannes Radinger wrote: > I try to rescale a rastermap with category values ranging from 1 to 16. > I want to rescale them by dividing the values by the maximum value, like > 1 --> 1/16, 10-->10/16 and 16 --> 1). I tried to do that with the r.rescale > tool with setting the output range to 0,1

Re: [GRASS-user] r.rescale - float instead of integer?

2011-03-22 Thread Rich Shepard
On Tue, 22 Mar 2011, Johannes Radinger wrote: but it I don't get float values as a results, only 0 and 1 as integers. Does r.rescale handle floats and how do I have to rescale it? Or is there any other simple way to divide the single raster values by the maximum value and get a float value as re

[GRASS-user] r.rescale - float instead of integer?

2011-03-22 Thread Johannes Radinger
Hello, I try to rescale a rastermap with category values ranging from 1 to 16. I want to rescale them by dividing the values by the maximum value, like 1 --> 1/16, 10-->10/16 and 16 --> 1). I tried to do that with the r.rescale tool with setting the output range to 0,1 like: r.rescale input=inpu