[GRASS5] Re: mapcalc reusability
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 ...
> #% description: Blends color components of 2 raster maps by a given %
> first map'
> #% key: first
> #% type: string
> #% gisprompt: old,cell,raster
> #% description: Name of first file for blending
> #% required : yes
> #% 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
please have a look at the g.parser manual page for explanations
of the definitions:
The C parser code in lib/gis/parser.c generates tcl/tk.
More information about the grass-dev