[GRASS-user] Using r.reclass

Hi

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?

THanks
Kat

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

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

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?

2010/10/20 Glynn Clements <glynn@gclements.plus.com>

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


Glynn Clements <glynn@gclements.plus.com>

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@gclements.plus.com>