[GRASS-user] g.parser options - values?

Hej,

I know how to use g.parser in a python script for
getting vector and raster maps like:

#%option
#% key: reliefmap
#% type: string
#% gisprompt: old,cell,raster
#% description: Name of shaded relief or aspect map
#% required : yes
#%end

but how can I use a value instead of a map, for example
a value that is parsed for the resolution-setting of
g.region?

Is there any good description of the settings of g.parser, e.g
what can be a type, what is exactly gispromt etc.?

/Johannes

--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone

On Mon, Apr 4, 2011 at 5:42 PM, Johannes Radinger <JRadinger@gmx.at> wrote:

Hej,

I know how to use g.parser in a python script for
getting vector and raster maps like:

#%option
#% key: reliefmap
#% type: string
#% gisprompt: old,cell,raster
#% description: Name of shaded relief or aspect map
#% required : yes
#%end

but how can I use a value instead of a map, for example
a value that is parsed for the resolution-setting of
g.region?

Check for example r.neighbors, r.plane or even the g.region code.

An example from r.plane:

#%option
#% key: dip
#% type: double
#% gisprompt: -90-90
#% answer: 0.0
#% description: Dip of plane. Value must be between -90 and 90 degrees
#% required : yes
#%end

Is there any good description of the settings of g.parser, e.g
what can be a type, what is exactly gispromt etc.?

A starter is here:
http://grass.osgeo.org/wiki/Module_command_line_parser

Please add more to this Wiki page.

Markus