<span style="font-family: Verdana"><span style="font-family: Verdana"><span style="font-family: Verdana"><span style="font-family: Verdana">     <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /><title></title>     Hi Roland,<br /> I use in my calculations something like this:<br /> <br /> last_round=07<br /> Y=${last_round}<br /> current_round=08<br /> X=${current_round}<br /> <br /> r.mapcalc ez_${X}_01 =&quot;if(isnull(dgm_top_${X}),ez_${Y},ez_${Y}+20)&quot;<br /> r.mapcalc ez_${X}_02 =&quot;if(isnull(dgm_cut_${X}),ez_${X}_01,ez_${X}_01-10)&quot;<br /> <br /> Maybe you could define your variables in this way.<br /> To define a command as a variable I use i.e.<br /> <br /> <big>bg1=<b>`</b>echo &quot;d.rast ez_${Y}&quot;<b>`</b></big><br /> ${bg1} starts it.<br /> <br /> cheers<br /> om shantih<br /> Philipp<br /> <br /> <br /> Roland Pape schrieb: <blockquote cite="mid:4795CE65.9080909@giub.uni-bonn.de" type="cite">Hello,   <br />   <br /> I have to perform some complex calculations on several hundreds of maps using a shell script. A set of variables would ease the task, therefore my question: Is there any possibility to use a set of predefined variables (no maps!) in r.mapcalc? - It seems to me as if it is always looking for maps and consequently states &quot;i is not a map&quot;.   <br />   <br /> Is there any way to do this?   <br />   <br /> Thanks, <br /> Roland   <br />   <br />   <br /> _______________________________________________   <br /> grass-user mailing list   <br /> <a href="mailto:grass-user@lists.osgeo.org" class="moz-txt-link-abbreviated">grass-user@lists.osgeo.org</a>   <br /> <a href="/xml/deref?link=http%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgrass-user" class="moz-txt-link-freetext" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a>   <br /> </blockquote> <br /> </span></span></span></span>