<div dir="ltr"><div>Given your screen shot, the following will likely work:</div><div><br></div><div>fils= <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml"><b>systemfunc</b></a>("ls [1-2][8-9-0-1]*/*nc")</div><div>print(fils)</div><div><br></div><div>f    = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml"><b>addfiles</b></a> (fils, "r")  <br></div><div>x   = f[:]->X</div><div><b>printVarSummary</b>(x)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 17, 2019 at 9:57 AM Adam Phillips via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Setareh,<div>See the examples on the addfiles documentation page:</div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml</a><br></div><div><br></div><div>Whatever syntax works in your shell, will work for NCL. For instance this might work:</div><div>fils = systemfunc ("ls */*.nc") ; file paths</div><div>print(fils)<br>f    = addfiles (fils, "r")  </div><div>IF the only files in the directories are the ones your want, the ordering is what you want, etc. See the output from print(fils). This may take some trial and error, but the goal will be to set the correct syntax within systemfunc to see only the files you want in the correct order that you need them. <br></div><div>Adam</div><div> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 17, 2019 at 4:01 AM Setareh Rahimi via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear all,<div><br></div><div>I have daily precipitation data from 1983-2017. Each year has been saved in one separate folder (have a look at attached image). I need to combine all these data to have a climatological average of precipitation. My problem is that, how can I indicate the path of data to NCL, to find all the data set. The script I use is in the same folder that data has been saved. the script attached. Please kindly advice me on this issue.</div><div>Many thanks in advance,<br clear="all"><div>Best wishes,</div>-- <br><div dir="ltr" class="gmail-m_-4569680971429856464gmail-m_8751813496684893099gmail_signature">S.Rahimi<br><br></div></div></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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-4569680971429856464gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></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></blockquote></div>