<div dir="ltr"><div dir="ltr"><div>Soma,</div><div><br></div><div>you may try </div><div><div><br></div><div>all_files = systemfunc("ls /Users/kunalbali/*year*.nc") </div><div>fall=addfiles(all_files, "r")</div><div>ListSetType(fall, "cat")</div><div>ozone =fall[:]->AIRS3STM_006_O3_VMR_A </div><div>printVarSummary(ozone)</div><div>diro = "./"</div><div>filo = "<a href="http://merge.nc">merge.nc</a>"</div><div>ncdf = addfile(diro+filo ,"c")</div><div>filedimdef(ncdf,"time",-1,True)</div><div>ncdf->AIRS3STM_006_O3_VMR_A=ozone</div></div><div><br></div><div><br></div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---<br></div><div><font size="2"><span>Kunal Bali<br></span></font></div><div><br></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 20, 2019 at 8:36 PM Soma Roy <<a href="mailto:somaroy892@gmail.com">somaroy892@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto">There is need. I need to merge the netcdf files into single one using ncl only.<div dir="auto"><br></div><div dir="auto">This file will be utilized in other purpose.</div><div dir="auto">So processing through ncl is urgent.</div><div dir="auto"><br></div><div dir="auto">Soma</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Feb 20, 2019, 20:19 Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Both CDO and NCO can easily merge (concatenate) the files. Still neither is NCL as requested by the user.</div><div><br></div><div>"I want to merge them into a single file <b>using ncl only</b>"</div><div><br></div><div>In my opinion, if you are processing with NCL there is no need to concatenate (merge) the files. <br></div><div><pre><span style="font-family:arial,helvetica,sans-serif">fils = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml" rel="noreferrer" target="_blank"><strong>systemfunc</strong></a> ("ls TRMM_3B42_2013*.nc") ; file paths<br>print(fils)<br><strong></strong><br>f = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml" rel="noreferrer" target="_blank"><strong>addfiles</strong></a> (fils, "r")<br>x = f<b>[:]</b>->variable_name<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"><b>printVarSummary</b>(x)<b><br>printMinMax(</b>x, 0)<br>===<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">You could create a netCDF using NCL's <a href="https://www.ncl.ucar.edu/Applications/write_netcdf.shtml" rel="noreferrer" target="_blank"><b>write_netcdf</b></a><span style="font-family:arial,helvetica,sans-serif"> guide:</span><br><br></span></pre></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 20, 2019 at 4:49 AM Appo derbetini <<a href="mailto:appopson4@gmail.com" rel="noreferrer" target="_blank">appopson4@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi, <br></div><div><br></div><div>You can proceed with CDO<br></div><div><br></div><div dir="auto"><font size="4"><span style="color:rgb(0,0,255)">cdo mergetime TRMM_3B42_20130611.nc <a href="http://output.nc" rel="noreferrer" target="_blank">output.nc</a></span></font></div><div dir="auto"><br></div><div>or NCO<br></div><div><br></div><div><font size="4"><span style="color:rgb(0,0,255)">ncrcat TRMM_3B42_20130611.nc <a href="http://output.nc" rel="noreferrer" target="_blank">output.nc</a></span></font></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 20 févr. 2019 à 11:15, Soma Roy <<a href="mailto:somaroy892@gmail.com" rel="noreferrer" target="_blank">somaroy892@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello,<div dir="auto">I have several netcdf files containing daily data. I want to merge them into a single file using ncl only.</div><div dir="auto">Please kindly inform me about the above.</div><div dir="auto"><br></div><div dir="auto">Files are like;</div><div dir="auto">TRMM_3B42_20130611.nc</div><div dir="auto">TRMM_3B42_20130612.nc</div><div dir="auto">TRMM_3B42_20130613.nc</div><div dir="auto">and so on..</div><div dir="auto"><br></div><div dir="auto">Thanking you,</div><div dir="auto">Soma</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" rel="noreferrer" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" rel="noreferrer" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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>
</blockquote></div>