<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span><span style="color:rgb(0,0,0);font-size:12pt"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml" target="_blank"><b>systemfunc</b></a> + <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml" target="_blank"><b>addfiles</b></a><br></span></span></div><div><br></div><div>Without knowing specifics, it is hard to answer the question.<br></div><div><br></div><div>[1] <b>systemfunc </b>will return the <i><b>paths</b> </i>to files. <b>They can be</b> <span style="color:rgb(0,0,255)"><b><i>any</i></b></span> <b>file sizes</b></div><div>[2] <b>addfiles </b>allows users to access a single variable that spans multiple files.<b> </b><br></div><div>Two options are available:<b> cat</b> and <b>join</b>   [see documentation]<br></div><div><br></div><div>If the variable [say, <b>X</b>] is (<b>time</b>,[level/depth,],lat,lon). '<b>time</b>' is the record dimension<br></div><div><br></div><div>and the sizes of the <u>record</u> (<u>leftmost</u>) dimension are (say) 31, 28, 31,30  then</div><div><br></div><div>    F = <b>addfiles</b>(path, "r")            <br></div><div>    xCat = F[:]->X                  ; (120,[level/depth,],lat,lon) , default <b>cat </b>(concatenate) mode<br></div><div><br></div><div>The '<b>join</b>'  option could <b>not</b> be used</div><div><br></div><div>-----</div><div><br></div><div>There was a recent [ October 6-8 ] ncl-talk question:</div><div><br></div><div><b>[ncl-talk] read variable with different size dimension in multiple files</b><br></div><div><br></div><div>From the ncl-talk archives:  <a href="http://mailman.ucar.edu/pipermail/ncl-talk/"><b>http://mailman.ucar.edu/pipermail/ncl-talk/</b></a><br></div><div><br></div><div>Question:     <a href="http://mailman.ucar.edu/pipermail/ncl-talk/2018-October/013295.html"><b>http://mailman.ucar.edu/pipermail/ncl-talk/2018-October/013295.html</b></a></div><div>Response:   <a href="http://mailman.ucar.edu/pipermail/ncl-talk/2018-October/013302.html"><b>http://mailman.ucar.edu/pipermail/ncl-talk/2018-October/013302.html</b></a></div><div><br></div><div>---</div><div>If you are looping over multiple files and the variable [say, <b>X</b>] has different dimension sizes and the data from each file ar to be processed individually, then use NCL's replacement  (overwrite) syntax  <span style="color:rgb(0,0,255)"><b>:=</b></span><br></div><div><br></div><div>   do nf=0,nfiles-1</div><div>        f   =  addfile(path(nf),"r")</div><div>        x :<span style="color:rgb(0,0,255)"><b>=</b></span> f->X                           ; create new  'x' ... can be a different size/shape/type<br></div><div>   end do</div><div><br></div><div><span><span style="color:rgb(0,0,0);font-size:12pt"></span><span style="color:rgb(0,0,0);font-size:12pt"></span></span></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 20, 2018 at 6:04 PM Vanúcia Schumacher <<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_5694384681609895259m_-6386449257046456081divtagdefaultwrapper" style="font-size:14pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><span style="color:rgb(0,0,0);font-size:12pt">Hi users,</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span><span style="color:rgb(0,0,0);font-size:12pt">I would like to know if it has
</span><span style="color:rgb(0,0,0);font-size:12pt">another</span><span style="color:rgb(0,0,0);font-size:12pt"> command or way in which I can read</span><span style="color:rgb(0,0,0);font-size:12pt"> </span><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:12pt">multiple
 data files</span><span style="color:rgb(0,0,0);font-size:12pt"> using systemfunc + addfiles</span><span style="color:rgb(0,0,0);font-size:12pt">,</span><span style="color:rgb(0,0,0);font-size:12pt"> which the files have different sizes.</span></span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span><span style="color:rgb(0,0,0);font-size:12pt"><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span style="color:rgb(0,0,0);font-size:12pt">Thanks </span></span></p>
</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><br>
</blockquote></div>