<DIV>Hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm trying to write a module in order to write an ascii file from two or more different raster files. Can I use two different options or should I use the multiple = YES option in G_define_option(). To clarify my question I have the following examples: </DIV>
<DIV>&nbsp;</DIV>
<DIV>CASE 1:</DIV>
<DIV>&nbsp;</DIV>
<DIV>inputone=G_define_option()</DIV>
<DIV>inputone-&gt; key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ="firstinput";</DIV>
<DIV>inputone-&gt; type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =TYPE_STRING;</DIV>
<DIV>inputone-&gt;required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =YES;</DIV>
<DIV>inputone-&gt;gisprompt&nbsp;&nbsp;&nbsp; = "old, cell,raster";</DIV>
<DIV>inputone-&gt;description&nbsp;&nbsp; ="Name of input layer no 1";</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>inputtwo=G_define_option()</DIV>
<DIV>inputtwo-&gt; key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ="secondinput";</DIV>
<DIV>inputtwo-&gt; type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =TYPE_STRING;</DIV>
<DIV>inputtwo-&gt;required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =YES;</DIV>
<DIV>inputtwo-&gt;gisprompt&nbsp;&nbsp;&nbsp; = "old, cell,raster";</DIV>
<DIV>inputtwo-&gt;description&nbsp;&nbsp; ="Name of input layer no 2";</DIV>
<DIV>&nbsp;</DIV>
<DIV>CASE 2:</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>input =G_define_option()</DIV>
<DIV>input-&gt; key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ="firstinput";</DIV>
<DIV>input -&gt; type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =TYPE_STRING;</DIV>
<DIV>input-&gt;required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =YES;</DIV>
<DIV>input-&gt;multiple&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =YES;</DIV>
<DIV>input -&gt;gisprompt&nbsp;&nbsp;&nbsp; = "old, cell,raster";</DIV>
<DIV>input-&gt;description&nbsp;&nbsp; ="Name of input layer";</DIV>
<DIV>&nbsp;</DIV>
<DIV>In case I need to use the second case, how can I control the way in which the ascii file is written (I need to write in the ASCII file other parameters between each raster layer).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jaime</DIV></DIV></DIV>
<DIV>&nbsp;</DIV><p><br><hr size=1 noshade><b>Do You Yahoo!?</b><br>
<a href=http://espanol.yahoo.com/mail_tagline/*http://espanol.news.yahoo.com><DEFANGED_IMG src="http://us.i1.yimg.com/us.yimg.com/i/not/dailynews.gif" width=30 height=26 border=0 align=left></a>
Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo.<br>
Visíta <a href=http://espanol.yahoo.com/mail_tagline/*http://espanol.news.yahoo.com>Yahoo! Noticias</a>.<br>