Hi Roberto!<br><br><span id="result_box" class="" lang="en"><span class="hps">You must follow</span> <span class="hps">these steps</span><span class="">:</span> <span class="hps"><a href="http://www.iges.org/grads/gadoc/gradcomdsetfwrite.html">http://www.iges.org/grads/gadoc/gradcomdsetfwrite.html</a><br>
and <a href="http://www.iges.org/grads/gadoc/gradcomdqfwrite.html">http://www.iges.org/grads/gadoc/gradcomdqfwrite.html</a><br><br></span></span><span id="result_box" class="short_text" lang="en"><span class="hps">Another option</span> <span class="hps">is to use</span> <span class="hps">the command</span> <span class="hps">SED<br>
Example:<br></span></span><span id="result_box" class="" lang="en"><span class="hps">After</span> <span class="hps">the display</span><span>,</span> <span class="hps">you keep</span> <span class="hps">the information in a</span> <span class="hps">new variable</span><span class="hps">, how to:</span> <br>
<b><span class="hps">chv1</span>=<span class="hps">sublin</span><span class="hps">(result</span><span>,</span> <span class="hps">4)</span><br>c<span class="hps"></span><span class="hps">hv1</span>=<span class="hps">subwrd</span><span class="hps atn">(</span><span>chv1</span></b><span class=""><b>, 1)<br>
<br></b>then, </span></span><b><span id="result_box" class="short_text" lang="en"><span class="hps">'!echo 'yy','mm','dd','hh','lon','lat','chv1' | sed s@\ @@g >> verific.dat'</span></span></b><span id="result_box" class="short_text" lang="en"><span class="hps"><b> </b> <br>
All this</span> <span class="hps">inside the loop.<br><br></span></span><span id="result_box" class="short_text" lang="en"><span class="hps">I hope</span> <span class="hps">this helps.<br>Cheers,<br><br></span></span>-- <br>
Rafael Censi Borges<br>Meteorologia - Epagri/Ciram<br>+55 (48)3239-8064/8066<br><a href="http://ciram.epagri.sc.gov.br" target="_blank">http://ciram.epagri.sc.gov.br</a><br><br><span id="result_box" class="short_text" lang="en"><span class=""><br>
</span></span><br><div class="gmail_quote">2012/6/4 Roberto Mera <span dir="ltr"><<a href="mailto:rjmera@coas.oregonstate.edu" target="_blank">rjmera@coas.oregonstate.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I'm trying to write a script to write a bunch of area average numbers to<br>
a single text file for analysis with other software. The fprintf command<br>
only returns one value for area average when I run my area average<br>
script. Below is my area average script. How do I go about creating a<br>
text file for this?<br>
<br>
Thanks<br>
<br>
<br>
count = 1<br>
while (count < 151)<br>
'set e 'count<br>
*'set e 1 10'<br>
*Cascades, Peuget north of 45N<br>
*'areal=aave(maskout(pmax1,mskgrd(t=1)),x=147.934,x=194.184,y=209.807,y=246.807)'<br>
*Olympic Peninsula<br>
'areal=aave(pmax1,x=154.871,x=166.434,y=228.307,y=239.869)'<br>
'fprintf areal aereal.txt'<br>
'd areal'<br>
areal=subwrd(result,4)<br>
say areal<br>
if (rc != 0) ; break ; endif<br>
count = count +1<br>
*count = count +12<br>
endwhile<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><br clear="all"><br><br>