<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 21, 2015 at 6:49 AM, Nikos Alexandris <span dir="ltr"><<a href="mailto:nik@nikosalexandris.net" target="_blank">nik@nikosalexandris.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">While working on the script, I'd like to understand if the "gisprompt" line is correct:<br>
<br>
#%option<br>
#% key: linke<br>
#% key_desc: key description here<br>
#% type: string<br>
#% label: label here<br>
<br>
#% gisprompt: old,fcell,raster<br>
<br>
#% description: Name of the Linke atmospheric turbidity coefficient input raster map<br>
#% required : no<br>
#%end<br>
<br>
<br></blockquote><div>This does not seem correct. Run<br><br></div><div>r.sun --script<br><br></div><div>and you will get what should be there.But note that the output is suboptimal because it is listing all the details and it is not using standard options, so look which standard options you can use (e.g. OPT_R_INPUT).<br><br>It would be good if you can look to r.sun which other options you can include.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
According to <<a href="http://wgrass.media.osaka-cu.ac.jp/grassh/programming7/gislib_cmdline_parsing.html#gisprompt_Member" target="_blank">http://wgrass.media.osaka-cu.<u></u>ac.jp/grassh/programming7/<u></u>gislib_cmdline_parsing.html#<u></u>gisprompt_Member</a>>:<br>
"...three comma-separated (no spaces allowed) sub-arguments..." and "Second argument: ...should be the name of one of the standard subdirectories of the mapset, as listed in $GISBASE/etc/element_list."<br>
<br>
Since Linke Turbidity ranges in [0, 7.0], "fcell" shoulb be correct here. Also, does it matter if a map is DCELL or FCELL, regarding the "element"? Either will be stored inside the "fcell" directory, right?<span class="HOEnZb"><font color="#888888"><br>
<br>
Nikos<br>
</font></span></blockquote></div><br></div></div>