Hi Geeta;<div>Try this:</div><div>-------------------</div><div><div>'set lat 13.44'</div><div>'set lon 77.06'</div><div>'d x2-x1'</div><div>line=sublin(result,2)</div><div>dummy=subwrd(line,4)</div>
<div><br></div><div><br></div><div>'d x3-x2'</div><div>line2=sublin(result,2)</div><div>dummy2=subwrd(line2,4)</div><div><br></div><div>nn = 'KORA : 'dummy' 'dummy2</div><div>rc=write('/model/uas/rain48.dat',nn,append)</div>
</div><div>---------------------------------------------------------------</div><div><br><br><div class="gmail_quote">On Fri, May 6, 2011 at 12:07 PM, Geeta Geeta <span dir="ltr"><<a href="mailto:geeta124@hotmail.com">geeta124@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
Hello all, <br>I have posted this problem a few days back also. But I did not get any response. So I am repeating it again. <br><br>My problem is that I have to write TWO variables at a few station locations. It looks like this <br>
<b>STN RAINFALL TEMP</b><br>KORA : 0.00 30.1<br>HEBBURU : 0.13 30.2<br>TURUVEKERE : 0.00 29.3<br>MAYASANDRA : 0.00<br>KUNIGAL : 3.60<br>
YADIYUR : 3.60<br>GUTTAL : 0.00<br>KARJIGI : 0.00<br>RANEEBENNUR: 0.00<br>KUPPELUR : 0.00<br>HIREKERUR : 0.00<br>RATTIHALLI : 0.00<br><br>Following script is being used for extracting the Rainfall amounts. <br>
* 1. TUMKUR, KORA<br>'set lat 13.44'<br>'set lon 77.06'<br>'d x2-x1'<br>dummy=sublin(result,2)<br>rc=write('/model/uas/rain24.dat','KORA : 'dummy,append)<br>'d x3-x2'<br>
dummy=sublin(result,2)<br>rc=write('/model/uas/rain48.dat','KORA : 'dummy,append)<br>*********************<br><br>Grads writes only ONE Variable. I am unable to make Grads write TWO variables simultaneously in file using Grads. <br>
<br>Kindly help me. <br>geeta<br><br>                                            </div>
<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>
<br></blockquote></div><br><br><div>---------------------------------------------------------------------<br>Emrullah SONUÇ (<a href="mailto:esonuc@gmail.com" target="_blank">esonuc@gmail.com</a>)<br>Karabuk University<br>
Faculty Of Engineering<br>Department Of Computer Engineering<br>Baliklarkayasi Mevkii, 78050 Karabuk, TURKEY<br>Tel: +90-370-4332021 Fax: +90-370-4333290<br>---------------------------------------------------------------------</div>
<br>
</div>