[GRASS5] The status of 5.0

Glynn Clements glynn.clements at virgin.net
Sun Mar 24 08:06:03 EST 2002


Glynn Clements wrote:

> > 249,845 - r.reclass - I am not sure whether I understand this correctly but
> > it appears that the command works differently than described in manual,
> > I suggest here to change the manual and remove the * rule from there as it does
> > not
> > work and it does not seem to be an easy fix. It is easy to run r.null to change
> > the
> > NULLs to 0 or anything else on the reclassed file.
> > I suggest to remove the following sentence from the manual:
> > "To include all (remaining) values the asterix "*" can be used.
> > This rule has to be set as last rule. No further rules are accepted after
> > setting this rule."
> > and close this bug report
> 
> It appears that the range of the reclass table is determined only by
> the explicitly specified categories. '*' only affects categories which
> lie within that range. An example (from spearfish):

[snip]

> It might be possible to fix this by extending the range of the reclass
> table to the range of the input when a default rule is provided.

I've tried this, and (in spite of the comments in reclass.c) it
appears to work, so I'll commit it for testing.

Also, reclass.c has specific code (re_reclass()) to generate a reclass
of reclass. However, main.c explicitly checks for this case and
generates a fatal error if you try to use it. This limitation wasn't
in 4.3; it was introduced in:

	revision 1.3
	date: 2001/02/07 10:33:07;  author: markus;  state: Exp;  lines: +8 -0
	added check if input map is already a reclass (currently not allowed)

Markus: do you recall the reasoning behind this?

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list