[GRASS-dev] [grass-code I][508] r.colors: last 100% rule is
forgotten
Hamish
hamish_nospam at yahoo.com
Wed Oct 10 18:49:41 EDT 2007
Glynn Clements wrote:
> > code I item #508, was opened at 2007-10-10 19:37
> > Summary: r.colors: last 100% rule is forgotten
..
> > Initial Comment:
> > as reported on the mailing list:
> > http://article.gmane.org/gmane.comp.gis.grass.devel/22645
> >
> > There seems to be a bug in r.colors in 6.2 and 6.3.
> >
> > e.g. for a CELL map containing values of [0-255], if the rules file
> > looks like this:
> >
> > 0% 0:0:0 37.5% 255:0:0
> > 37.5% 255:0:0 75% 255:255:0
> > 75% 255:255:0 100% 255:255:255
>
> Why do you think that format should be accepted? AFAICT, nothing in
> the r.colors documentation indicates that it should be, nor, AFAICT,
> has it ever been this way.
>
> FWIW, everything after the colour is discarded, so the above is
> treated exactly the same as:
>
> 0% 0:0:0
> 37.5% 255:0:0
> 75% 255:255:0
oops I was mixing up the final colr/ file format with the rules= input
format. My GMT color rules importing r.cpt2grass script is now updated
and working fine.
thanks,
Hamish
More information about the grass-dev
mailing list