Updated r.colors - was: [GRASS-dev] problem with r.colors on Mac
Glynn Clements
glynn at gclements.plus.com
Sat Apr 14 17:24:43 EDT 2007
Michael Barton wrote:
> >> I just did an update this morning and don't see any difference in r.color
> >> behavior.
> >>
> >> r.colors map=elevation_delete rules=/Users/cmbarton/colors/bcyr
> >>
> >> ...produced an error.
> >
> > What error?
>
> GRASS 6.3.cvs (spearfish60_test):~ > r.colors map=elevation_delete rules=/Users/cmbarton/colors/bcyr
>
> ERROR: value </Users/cmbarton/colors/bcyr> out of range for parameter
> <rules>
> Legal range:
> aspect,aspectcolr,bcyr,byg,byr,curvature,differences,elevation,etopo2,evi,gr
> ey,gyr,ndvi,population,rainbow,ramp,ryb,ryg,slope,srtm,terrain,wave
You're still using the old version. In the updated version, rules=
doesn't have an ->options list:
opt.rules = G_define_option();
opt.rules->key = "rules";
opt.rules->type = TYPE_STRING;
opt.rules->required = NO;
opt.rules->description = _("Path to rules file");
opt.rules->gisprompt = "old_file,file,input";
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list