In my case I only use perl to change the geometry attributions file (*.geo) and the main configurations file (*.cfg)<br><br>you can do something like<br><br><a href="http://code_change_geo.pl">code_change_geo.pl</a> and invoke it like:<br>
<br>perl <a href="http://code_change_geo.pl">code_change_geo.pl</a> $VAR1 $VAR 2 .... (the code must produce a .geo file)<br><br>where VAR1 and VAR2 are the variables you want to change.<br><br>if you put this in a for you can generate a X quantity of .geo files, then you can do the same for a cfg file (the main configuration file to assign the geometry you want to esp-r)<br>
<br>like<br>perl <a href="http://code_change_cfg.pl">code_change_cfg.pl</a> $VAR1 $VAR <br><br>and in the same for you can run esp-r.<br><br>I have a bash file who do almost the same (since a lot time I didn't do that kind of procedure) this is the for statement:<br>
<br>------<br><br>for ((i=1 ; i<=$Nnumber ; i++))<br>do<br>printf "$i moving prueba$i.cfg... \n" ;<br>./<a href="http://change_cfg.pl">change_cfg.pl</a> prueba$i.cfg perltest$i.geo <br>mv prueba$i.cfg ./cfg/prueba$i.cfg<br>
printf "$i analyzing the file prueba$i.cfg ... \n";<br>cd cfg/el archivo<br>./CHANGEGEO.wc prueba$i.cfg $VERSION $i<br>./ANALYSEGEO prueba$i.cfg.wc_res $VERSION $i<br>cd ..<br>done<br>-------<br><br>you can see that ./ANALYSEGEO I take it from esp-r cookbook example (I just rename it and take out the results that interest me)<br>
<br>Hope it helps you<br><br>regards<br>DGS<br><br><br><br><div class="gmail_quote">On Mon, Aug 2, 2010 at 6:09 AM, victor bunster <span dir="ltr"><<a href="mailto:victorbunster@gmail.com">victorbunster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi All,<br>After some tryouts, your help and lots of cookbook, the terminal is getting very rewarding. <br>
For example to generate a zone from scratch:<br><br>############## start<br>#!/bin/csh -fb<br>prj -mode text << key1<br>
e <br>MODEL<br>a <br>description<br>modelname.log<br>N<br>N<br>41 <br>-4 <br>2010 <br>m <br>c <br>a <br>a <br>zonedescription<br>whatrepresents<br>a <br>0,0,0<br>5,5,5 <br>0 <br>0<br>0 <br>
connectionsname.cnn<br>key1<br>############ end<br><br>But when trying to do the same type of procedures in Perl or Python (I need to write some objects) I have a couple of basic problems, for example, how do you start the prj -mode text by a .py or a .pl? or how do you pass the keyboard keys? <br>
My idea is to write several separated files and run them from one "parent", like the TEST sample.<br><br>Thanks in advance,<br><font color="#888888"><br>Victor Bunster<br><br>
</font><br>_______________________________________________<br>
esp-r mailing list<br>
<a href="mailto:esp-r@lists.strath.ac.uk">esp-r@lists.strath.ac.uk</a><br>
<a href="http://lists.strath.ac.uk/mailman/listinfo/esp-r" target="_blank">http://lists.strath.ac.uk/mailman/listinfo/esp-r</a><br></blockquote></div><br><br clear="all"><br>-- <br>David GARCIA SANCHEZ <br>------------------------------------------------------------<br>
Département Systèmes Énergétiques Environnement<br>Ecole des Mines de Nantes<br>4, Rue Alfred Kastler<br>44300 Nantes<br>France<br>------------------------------------------------------------<br>Email: <a href="mailto:david.garcia-sanchez@emn.fr">david.garcia-sanchez@emn.fr</a><br>
Tel: +33 (0) 2 51 85 82 14<br>Mobile: +33 (0) 6 78 15 08 09<br>Fax: +33 (0) 2 51 85 82 99<br>------------------------------------------------------------<br>