[GRASS5] r.rescale range question
Markus Neteler
neteler at itc.it
Fri Nov 9 09:59:25 EST 2001
On Fri, Nov 09, 2001 at 02:39:36PM +0000, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > while looking at r.rescale I found
> >
> > r.rescale [-q] input=name [from=min,max] output=name [to=min,max]
> > [title="phrase"]
> >
> > [...]
> > to The output data range
> > default: 1,255
> >
> > This range looks a bit unusual. Shouldn't it be 8bit = 0..255?
>
> I would guess that it's a leftover from when zero was null.
>
> Personally, I would suggest just making the "to" option mandatory. I
> can't see why 255 is any more suitable as a default than any other
> value.
Thanks for all suggestions. I have updated module and html page
making the "to" option mandatory.
Cheers,
Markus
More information about the grass-dev
mailing list