Martin Landa, author of the graphical modeler, has posted this video showing 
how to use variables.

 http://www.youtube.com/watch?v=RztxMXXtA0s&feature=player_embedded
______________________________
C. Michael Barton 
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice:  480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
www:    http://csdc.asu.edu, http://shesc.asu.edu
                http://www.public.asu.edu/~cmbarton

On Sep 27, 2011, at 2:07 PM, [email protected] wrote:

> Message: 1
> Date: Mon, 26 Sep 2011 14:40:56 +0100
> From: Lu?s Ferreira <[email protected]>
> Subject: [GRASS-user] wxGUI Graphical Modeler - variables
> To: GRASS user list <[email protected]>
> Message-ID: <1317044456.8325.9.camel@leopardo>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hello.
> 
> I have some selected lines in a command line script:
> 
> #! /bin/sh -x
> 
> MYMAPSET=`g.gisenv -s get=MAPSET`
> targetdir=/home/lf/TEMP/
> 
> LIST=`g.mlist type=rast separator=, pattern="clip_toar*" mapset=
> $MYMAPSET`
> echo "$LIST"
> i.group group=group input=$LIST
> 
> r.out.gdal -c -f input=group format=HFA type=Float32 nodata=0 output=
> $targetdir/$MYMAPSET.clip_toar.img
> 
> g.remove group=group
> 
> #
> 
> 
> 
> In wxGUI Graphical Modeler, how can I  use the variables inside the
> commands options? I'm trying using string data type variables 
> 
> declaring variables
> 
> MYMAPSET
> default value `g.gisenv -s get=MAPSET`
> 
> targetdir 
> default value /home/lf/TEMP/
> 
> 
> then using in r.out.gdal options
> 
> r.out.gdal -c -f input=group format=HFA type=Float32 nodata=0 output=%
> targetdir/%MYMAPSET.clip_toar.img
> or 
> $targetdir/$MYMAPSET.clip_toar.img
> 
> 
> Without results.
> 
> Anyone have ideas how to solve this problem? Is it possible in Graphical
> Modeller?
> 
> Thank you.
> 
> Lu?s Ferreira
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> http://lists.osgeo.org/pipermail/grass-user/attachments/20110926/2125e3a6/attachment-0001.html

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to