<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">asciiwrite is the most basic of the functions.  Below are two of the more complex functions with more options for layout and formatting.</div><div class="gmail_default" style="font-family:verdana,sans-serif">ascii is probably one of the worst ways to store data however, depending on the number of files and dimensions this could take up a lot of space. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/write_matrix.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/write_matrix.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/write_table.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/write_table.shtml</a><br></div><div><br></div></div><div class="gmail_default" style="font-family:verdana,sans-serif">Blank messages to bump threads are necessary here. Especially within 24 hours on a weekend. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Good luck.  <br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Keep replies to ncl-talk.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 5, 2015 at 9:34 AM, Saurabh Singh <span dir="ltr">&lt;<a href="mailto:saurabhsingh123op@gmail.com" target="_blank">saurabhsingh123op@gmail.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 class="HOEnZb"><div class="h5"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div>NCL Version- 6.3.0</div><div>OS: UBUNTU</div><div><br></div><div>i have monthly netcdf files contaminating precipitation files are named as netcdf1,netcdf2 ...and so on. </div><div>I need to extract rainfall rate(precipitation of all the lat/long in a text file, the code extracts the rainfall values, but all lat longs are in a single column, i want each lat/long time series separated by a tab or a comma but i cannot do it.</div><div><br></div><div>though i tried it using an example listed in &quot;<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/asciiwrite.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/asciiwrite.shtml</a>&quot; (example 4) but this takes to long to execute an i failed to get output.</div><div><br></div><div>my current code is following. kindly suggest me how to modify it so that i can distinct lat-long values.</div><div><br></div><div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot; </div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot; </div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot; </div><div><br></div><div>;;----------------------------------------------------------------------<br></div><div>files = systemfunc(&quot;ls -1 /home/saurabh/Desktop/trmm/netcdf*&quot;) + &quot;.nc&quot;<br></div><div><br></div><div>c = addfiles(files,&quot;r&quot;)</div><div>rain=c[:]-&gt;pcp<br></div></div><div>asciiwrite(&quot;rain_all_lats_long.txt&quot;,rain)<span><font color="#888888"><br></font></span></div><span><font color="#888888">-- <br><div><div dir="ltr"><font style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif" size="2"><span><br></span></font></div><div dir="ltr"><font style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif" size="2"><span><br></span></font></div><div dir="ltr"><font style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif" size="2"><span>With regards</span><span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span><br></span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span>Saurabh Kumar singh</span><span></span> ntly netcdf diles</span></font><br style="color:rgb(51,204,0)"><br><font style="color:rgb(102,102,102)" size="1"><br></font></div><div dir="ltr"><font style="color:rgb(102,102,102)" size="1"><br></font></div><div dir="ltr"><font style="color:rgb(102,102,102)" size="1"> <b><i><span style="font-family:Webdings" lang="EN-GB">P</span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB"> : </span></i></b><b><i><span style="font-family:Arial,sans-serif" lang="EN-GB"> </span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB">Please consider the environment before printing this e-mail</span></i></b> </font><br style="color:rgb(102,102,102)"><br><br><br></div></div>
</font></span></div>
</div><br><div><div dir="ltr"><br><br></div></div>
</div>
</div></div><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>