<p dir="ltr">Thanks for the suggestions. I figured out the problem -- somehow an older version of my code was getting built and I wasn't following all the steps correctly on the grass and python wiki. The GUI works now, but my code logic still needs some work.</p>
<p dir="ltr">Eric</p>
<div class="gmail_quote">On Feb 28, 2013 3:03 AM, "Vaclav Petras" <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Eric, for me it works (with code from paste bin). GUI shows and<br>
neighbor_size is in the Optional tab.<br>
<br>
Another suggestions about options: If the "description" is long, you<br>
can use "label" which will be shown in the gui and description will<br>
become a tooltip. There is usually no need to write default value into<br>
the description since default value is already in the gui or in<br>
y.our.module --help.<br>
<br>
I'm afraid that the programming manual does not list these practices.<br>
<a href="http://grass.osgeo.org/programming7/gislib.html#Command_Line_Parsing" target="_blank">http://grass.osgeo.org/programming7/gislib.html#Command_Line_Parsing</a><br>
<br>
Vaclav<br>
<br>
On 28 February 2013 01:03, Eric Goddard <<a href="mailto:egoddard1010@gmail.com">egoddard1010@gmail.com</a>> wrote:<br>
> Thanks for the response, Luca. I've made the change to the output<br>
> option, but the neighbor_size option still isn't appearing in the gui.<br>
> The descriptions will become more verbose once the code and everything<br>
> is working; what is in the script now is just the bare minimum for it<br>
> to run. and generate a gui. I've pasted the full code at<br>
> <a href="http://pastebin.com/4PCJ0xeG" target="_blank">http://pastebin.com/4PCJ0xeG</a>.<br>
><br>
> On Wed, Feb 27, 2013 at 4:46 PM, Luca Delucchi <<a href="mailto:lucadeluge@gmail.com">lucadeluge@gmail.com</a>> wrote:<br>
>> 2013/2/27 Eric Goddard <<a href="mailto:egoddard1010@gmail.com">egoddard1010@gmail.com</a>>:<br>
>>> Hi all,<br>
>>><br>
>><br>
>> Hi Eric,<br>
>><br>
>>> Thanks,<br>
>>> Eric<br>
>>><br>
>>> #%module<br>
>>> #% description: Creates a Local Relief Model from input raster.<br>
>>> #% keywords: lrm<br>
>>> #% keywords: lidar<br>
>>> #% overwrite: yes<br>
>>> #%end<br>
>>> #%option G_OPT_R_INPUT<br>
>>> #% key:input_map<br>
>>> #% description: Select input raster<br>
>>> #% required: yes<br>
>>> #%end<br>
>>> #%option<br>
>>> #% key: output_map<br>
>>> #% type: string<br>
>>> #% description: Name for output LRM raster<br>
>>> #% required: yes<br>
>>> #%end<br>
>>> #%option<br>
>>> #% key: neighbor_size<br>
>>> #% type: double<br>
>>> #% description: The neighborhood size to be used in the low pass<br>
>>> filter. Default is 25.<br>
>>> #% required: no<br>
>>> #% answer: 25<br>
>>> #%end<br>
>>><br>
>><br>
>> I would like to change the description of module as following, for a<br>
>> more compliant GRASS description.<br>
>> I think this should work. Otherwise could you paste you entire code<br>
>> (better in a external site as pastebin)<br>
>><br>
>> #%module<br>
>> #% description: Creates a Local Relief Model from input raster.<br>
>> #% keywords: lrm<br>
>> #% keywords: lidar<br>
>> #% overwrite: yes<br>
>> #%end<br>
>> #%option G_OPT_R_INPUT<br>
>> #%end<br>
>> #%option G_OPT_R_OUTPUT<br>
>> #%end<br>
>> #%option<br>
>> #% key: neighbor_size<br>
>> #% type: double<br>
>> #% description: The neighborhood size to be used in the low pass<br>
>> filter. Default is 25.<br>
>> #% required: no<br>
>> #% answer: 25<br>
>> #%end<br>
>><br>
>><br>
>> --<br>
>> ciao<br>
>> Luca<br>
>><br>
>> <a href="http://gis.cri.fmach.it/delucchi/" target="_blank">http://gis.cri.fmach.it/delucchi/</a><br>
>> <a href="http://www.lucadelu.org" target="_blank">www.lucadelu.org</a><br>
> _______________________________________________<br>
> grass-dev mailing list<br>
> <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div>