Nikos Alexandris <n...@nikosalexandris.net wrote:

While working on the script, I'd like to understand if the "gisprompt" line is correct:

#%option
#% key: linke
#% key_desc: key description here
#% type: string
#% label: label here

#% gisprompt: old,fcell,raster

#% description: Name of the Linke atmospheric turbidity coefficient input
raster map
#% required : no
#%end

Vaclav Petras wrote:

This does not seem correct. Run

r.sun --script

Hmm, ok. Still, why "cell" for Linke-T? Linke-Ts are floats.


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).

I will try.


It would be good if you can look to r.sun which other options you can
include.

I am. I am also renaming stuff, eg slope_in to slope. I guess this is wanted.

Nikos


According to <http://wgrass.media.osaka-cu.ac.jp/grassh/programming7/
gislib_cmdline_parsing.html#gisprompt_Member>:
"...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."

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?
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to