[GRASS-user] Using r.reclass

Glynn Clements glynn at gclements.plus.com
Thu Oct 21 10:11:06 EDT 2010


katrin eggert wrote:

> > > I have a raster image that ranges from 1-300 and I want to apply reclass in
> > > order to reclass this image. But I only want to change 10 values
> > > (1,10,12,15, 100, 130, 200, 230, 250,290) and the rest I want them to be
> > > Null. in the rules file, shall I include the rest of the values and
> > > attribute them the null() value or what shall I do?
> >
> > Add the rule:
> >
> >        * = NULL
> 
> Ok Thanks Glynn. It worked
> and in the case of pixel-value for wich I dont define any value? R.reclass
> attributes NULL to it?

"* = ..." sets the default rule, which applies to any value which
isn't assigned explicitly.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list