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">&#39;!echo &#39;yy&#39;,&#39;mm&#39;,&#39;dd&#39;,&#39;hh&#39;,&#39;lon&#39;,&#39;lat&#39;,&#39;chv1&#39; | sed s@\ @@g &gt;&gt; verific.dat&#39;</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">&lt;<a href="mailto:rjmera@coas.oregonstate.edu" target="_blank">rjmera@coas.oregonstate.edu</a>&gt;</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&#39;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 &lt; 151)<br>
&#39;set e &#39;count<br>
*&#39;set e 1 10&#39;<br>
*Cascades, Peuget north of 45N<br>
*&#39;areal=aave(maskout(pmax1,mskgrd(t=1)),x=147.934,x=194.184,y=209.807,y=246.807)&#39;<br>
*Olympic Peninsula<br>
&#39;areal=aave(pmax1,x=154.871,x=166.434,y=228.307,y=239.869)&#39;<br>
&#39;fprintf areal aereal.txt&#39;<br>
&#39;d areal&#39;<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>