[GRASS-dev] Python module gui inputs

Luca Delucchi lucadeluge at gmail.com
Wed Feb 27 14:46:15 PST 2013


2013/2/27 Eric Goddard <egoddard1010 at gmail.com>:
> Hi all,
>

Hi Eric,

> Thanks,
> Eric
>
> #%module
> #%  description: Creates a Local Relief Model from input raster.
> #%  keywords: lrm
> #%  keywords: lidar
> #%  overwrite: yes
> #%end
> #%option G_OPT_R_INPUT
> #%  key:input_map
> #%  description: Select input raster
> #%  required: yes
> #%end
> #%option
> #%  key: output_map
> #%  type: string
> #%  description: Name for output LRM raster
> #%  required: yes
> #%end
> #%option
> #%  key: neighbor_size
> #%  type: double
> #%  description: The neighborhood size to be used in the low pass
> filter. Default is 25.
> #%  required: no
> #%  answer: 25
> #%end
>

I would like to change the description of module as following, for a
more compliant GRASS description.
I think this should work. Otherwise could you paste you entire code
(better in a external site as pastebin)

#%module
#% description: Creates a Local Relief Model from input raster.
#% keywords: lrm
#% keywords: lidar
#% overwrite: yes
#%end
#%option G_OPT_R_INPUT
#%end
#%option G_OPT_R_OUTPUT
#%end
#%option
#% key: neighbor_size
#% type: double
#% description: The neighborhood size to be used in the low pass
filter. Default is 25.
#% required: no
#% answer: 25
#%end


-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the grass-dev mailing list