you can use fwrite function<br><br> set fwrite mydata.dat<br>set gxout fwrite<br>d u10<br>d v10<br>d t2<br>d rh2<br><br> i think it wil be use full to you<br><br><div class="gmail_quote">On Sun, Jun 5, 2011 at 11:41 AM, Roopashree Shrivastava <span dir="ltr"><<a href="mailto:rss1901@gmail.com">rss1901@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Dear all,</div>
<div> I am using grads function fprintf to extract data in ascii . I am interested in many variables like u10,v10,t2,rh2,swd,rainc etc at a given point. Is there any way of making fprintf function write all the variables in the same file. for eg right now i would do</div>
<div> </div>
<div>set lat ------</div>
<div>set lon -------</div>
<div>set lev --------</div>
<div>set t 1</div>
<div>fprintf u10 u10.dat</div>
<div>
<div>fprintf v10 v10.dat</div>
<div>
<div>fprintf t2 t2.dat</div>
<div>
<div>fprintf rh2 rh2.dat</div>
<div> </div>
<div>Instead i want one output file which contains all the variables.</div>
<div> </div>
<div>Thanks and Regards</div>
<div>Roopa</div></div></div></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 clear="all"><br>-- <br><span style="color: rgb(0, 102, 0);"> Nagaraju Chilukoti</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);"> CCCR,</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);"> IITM, Pashan</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);"> Pune 411008</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);"> Mob.<b> <span style="color: rgb(204, 0, 0);">09224278979</span></b></span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);"> <span></span><a href="http://goog_932359822" target="_blank">cnraju@tropmet.res.in</a></span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);"> <a href="mailto:chilukotinagaraju@gmail.com" target="_blank">chilukotinagaraju@gmail.com</a><span></span></span><br>