<DIV>Hi all,</DIV>
<DIV> </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> </DIV>
<DIV>CASE 1:</DIV>
<DIV> </DIV>
<DIV>inputone=G_define_option()</DIV>
<DIV>inputone-> key ="firstinput";</DIV>
<DIV>inputone-> type =TYPE_STRING;</DIV>
<DIV>inputone->required =YES;</DIV>
<DIV>inputone->gisprompt = "old, cell,raster";</DIV>
<DIV>inputone->description ="Name of input layer no 1";</DIV>
<DIV> </DIV>
<DIV>
<DIV>inputtwo=G_define_option()</DIV>
<DIV>inputtwo-> key ="secondinput";</DIV>
<DIV>inputtwo-> type =TYPE_STRING;</DIV>
<DIV>inputtwo->required =YES;</DIV>
<DIV>inputtwo->gisprompt = "old, cell,raster";</DIV>
<DIV>inputtwo->description ="Name of input layer no 2";</DIV>
<DIV> </DIV>
<DIV>CASE 2:</DIV>
<DIV> </DIV>
<DIV>
<DIV>input =G_define_option()</DIV>
<DIV>input-> key ="firstinput";</DIV>
<DIV>input -> type =TYPE_STRING;</DIV>
<DIV>input->required =YES;</DIV>
<DIV>input->multiple =YES;</DIV>
<DIV>input ->gisprompt = "old, cell,raster";</DIV>
<DIV>input->description ="Name of input layer";</DIV>
<DIV> </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> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Jaime</DIV></DIV></DIV>
<DIV> </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>