<br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 5:43 PM, Anil acharya <span dir="ltr">&lt;<a href="mailto:acharya_anil@yahoo.com">acharya_anil@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><div>Hi</div><div>I am using write instead of print and want two parameters in the same file (formatted: 1st column as pcp, 2nd column as tmp). But I am getting some format error. Can you tell me what is wrong in the last line of the script?</div>
<div>(This format is similar to matlab). </div><div><br></div><div><div>&#39;set gxout print&#39;</div><div>&#39;set lat 38 42&#39;</div><div>&#39;set lon -105 -96&#39;</div></div><div>&#39;d apcp&#39;</div><div>pcp=subwrd(result,16)</div>
<div>&#39;d tmpsfc&#39;</div><div>tmp=subwrd(result,16)</div><div>dummy = write(&#39;output.txt&#39;, &#39;%8.4f %8.4f&#39;, pcp, tmp)</div><div><br></div></span></div></div></div></blockquote><div><br></div><div>Use the math_format() function instead, as documented here: <a href="http://grads.iges.org/grads/gadoc/mathfunctions.html">math functions</a></div>
<div><br></div><div>   Arlindo</div><div><br></div><div> </div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>