[GRASS5] Re: mapcalc reusability

Markus Neteler neteler at itc.it
Tue Oct 25 02:02:22 EDT 2005


On Mon, Oct 24, 2005 at 05:32:26PM -0700, cgnicholas at alamedanet.net wrote:
> > look at r.blend
> 
>  with the companion g.parser, this is kinda cool :-]
> 
> I notice the interesting header comments there, with #% delimeters ...
> 
> #%Module
> #%  description: Blends color components of 2 raster maps by a given %
> first map'
> #%End
> #%option
> #% key: first
> #% type: string
> #% gisprompt: old,cell,raster
> #% description: Name of first file for blending
> #% required : yes
> #%end
> #%option
> #% key: second
> ...
>  
> pardon my asking (and ignorance), but is this just convention, or is
> there something that defines 'key', 'type', 'gisprompt', etc, and is
> generally capable of parsing this? is this so it can appear in the Tcl
> GUI?
 
Chris,

please have a look at the g.parser manual page for explanations
of the definitions:

http://grass.itc.it/grass60/manuals/html60_user/g.parser.html

The C parser code in lib/gis/parser.c generates tcl/tk.

Markus




More information about the grass-dev mailing list