<div dir="ltr"><br clear="all"><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">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)<br></div>-- <br><div class="gmail_signature"><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>
</div>