<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
Hello.<BR>
<BR>
I have some selected lines in a command line script:<BR>
<BR>
#! /bin/sh -x<BR>
<BR>
MYMAPSET=`g.gisenv -s get=MAPSET`<BR>
targetdir=/home/lf/TEMP/<BR>
<BR>
LIST=`g.mlist type=rast separator=, pattern="clip_toar*" mapset=$MYMAPSET`<BR>
echo "$LIST"<BR>
i.group group=group input=$LIST<BR>
<BR>
r.out.gdal -c -f input=group format=HFA type=Float32 nodata=0 output=$targetdir/$MYMAPSET.clip_toar.img<BR>
<BR>
g.remove group=group<BR>
<BR>
#<BR>
<BR>
<BR>
<BR>
In wxGUI Graphical Modeler, how can I use the variables inside the commands options? I'm trying using string data type variables <BR>
<BR>
declaring variables<BR>
<BR>
MYMAPSET<BR>
default value `g.gisenv -s get=MAPSET`<BR>
<BR>
targetdir <BR>
default value /home/lf/TEMP/<BR>
<BR>
<BR>
then using in r.out.gdal options<BR>
<BR>
r.out.gdal -c -f input=group format=HFA type=Float32 nodata=0 output=%targetdir/%MYMAPSET.clip_toar.img<BR>
or <BR>
$targetdir/$MYMAPSET.clip_toar.img<BR>
<BR>
<BR>
Without results.<BR>
<BR>
Anyone have ideas how to solve this problem? Is it possible in Graphical Modeller?<BR>
<BR>
Thank you.<BR>
<BR>
Luís Ferreira
</BODY>
</HTML>