[GRASS-dev] Python module gui inputs

Eric Goddard egoddard1010 at gmail.com
Wed Feb 27 14:05:59 PST 2013


Hi all,

This is my first foray into grass scripting. I'm working on a GRASS 7
python module to create a local relief model from a lidar derived
surface. The code works, but for some reason in the auto generated gui
for the tool, the field to enter a neighborhood size to use for the
low pass filter doesn't appear.  my module code is below. Any
assistance would be greatly appreciated.

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


More information about the grass-dev mailing list