[GRASS5] 5.4 release branch

Markus Neteler neteler at itc.it
Wed Oct 13 07:51:51 EDT 2004


On Wed, Oct 13, 2004 at 10:29:40AM +1300, Hamish wrote:
> > > r.colors new format for rules files (Hamish, Glynn)
> > 
> > Is there a possibility to make the parser (a function) list the
> > available color files? Such as the 5.7 db.* tools list the available DB
> > drivers?
> 
> 
> I think a -l flag for r.colors is the way to go. (ala 'g.mapsets -l')

Yes, something like this, which then reports the following list:

ls $GISBASE/etc/colors
aspect  bcyr  byg  byr  elevation  evi  grey  gyr  rainbow  ramp  ryg  slope  srtm  terrain  wave

Not sure how to implement that (I tried but didn't manage).

Markus




More information about the grass-dev mailing list