[GRASS-user] Long post - Remote Sensing - Classifications

Glynn Clements glynn at gclements.plus.com
Sat Feb 21 21:05:23 EST 2009


Hamish wrote:

> [finding r.composite]
> 
> mitch_TX wrote:
> > it's in "Raster -> Manage map colors -> Create RGB" 
> > 
> > there was a wish a while ago to build a menu tree for the commands, not 
> > sure if it went anywhere. Maybe something could be built into 
> > tools/module_synopsis.sh (add a line of text under each module descr with 
> > italicized a->b->c menu location?)
> 
> todo. hmmm...
> 
> MODULE=r.composite
> xml2 < gui/wxpython/xml/menudata.xml | grep -B5000 "$MODULE" | \
>    sed -e 's+^/menudata/menubar/menu/++' | tac | \
>    grep '/label=\|^label=' | grep -B1000 '^label=' -m 1 | ... ?
> 
> may have to call in awk..

I don't know what you're trying to do, but I'm >95% certain that it
would be easier to do it in Python, probably by cannibalising
gui/wxpython/gui_modules/menudata.py.

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


More information about the grass-user mailing list