<br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 5:43 PM, Anil acharya <span dir="ltr"><<a href="mailto:acharya_anil@yahoo.com">acharya_anil@yahoo.com</a>></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>'set gxout print'</div><div>'set lat 38 42'</div><div>'set lon -105 -96'</div></div><div>'d apcp'</div><div>pcp=subwrd(result,16)</div>
<div>'d tmpsfc'</div><div>tmp=subwrd(result,16)</div><div>dummy = write('output.txt', '%8.4f %8.4f', 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>