<div dir="ltr"><div class="gmail_default" style="font-size:small">Geeta,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Instead of using "print" to append the values, I suggest using "write_table":</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/write_table.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/write_table.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">There are several examples on this page that should help you out</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 24, 2016 at 9:06 AM, Geeta Geeta <span dir="ltr"><<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@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:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div dir="ltr"><span>Hi all. </span></div><div dir="ltr"><span>I request for some help. </span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>I have two files which look like this. </span></div><div dir="ltr"><span><br></span></div><div dir="ltr">aditya@agniilap:~/geeta/ncl/<wbr>ReadHDF-2A25$ ls -lrt 11n67* Z.txt.20080324.70</div><div dir="ltr">-rw-rw-r-- 1 aditya aditya 760240 Sep 16 21:57 Z.txt.20080324.70 (17680 Lines)</div><div dir="ltr"></div><div dir="ltr">-rw-rw-r-- 1 aditya aditya 5430095 Sep 24 01:17 11n67 (18326 Lines)</div><div dir="ltr"><br></div><div dir="ltr"><span>File 11n67 is like this...</span></div><div dir="ltr"><span>Line No NS NPix ZLev11 .......................Zlev67</span></div><div dir="ltr"> 1 2915 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</div><div dir="ltr"> 2 2915 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</div><div dir="ltr"> 3 2915 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</div><div dir="ltr"> 4 2915 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</div><div dir="ltr"></div><div dir="ltr"> </div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>18326 3288 48 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><br></div><div></div><div> </div><div>Z.txt.20080324.70 Looks like this. </div><div dir="ltr">Line No NS NPix Lev Z</div><div><div>17659 3288 27 70 0.00</div><div> 17660 3288 28 70 0.00</div><div> 17661 3288 29 70 0.00</div><div> 17662 3288 30 70 0.00</div><div> 17663 3288 31 70 0.00</div><div> 17664 3288 32 70 0.00</div><div> 17665 3288 33 70 0.00</div><div> 17666 3288 34 70 0.00</div><div> 17667 3288 35 70 0.00</div><div> 17668 3288 36 70 0.00</div><div dir="ltr"> 17669 3288 37</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">I have to append the value of Z from the 2nd file at one point (say 3288/35) to the same point in the first file. </div><div dir="ltr">I used if statement, but I am not able to get what I desired (Code attached). </div><div dir="ltr"><br></div><div dir="ltr">I want the file 11n67 to be appended with value of Z from 2nd file at the common points. </div><div dir="ltr"><br></div><div dir="ltr">Thanks</div></div><span class="HOEnZb"><font color="#888888"><div>Geeta.</div></font></span></div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>