<div dir="ltr"><div>Likely, there are better ways but the following should work</div><div><br></div><div>fnam159 = <b>systemfunc</b>("ls 191001_2019101[5-9].nc")<br>fnam209 = <b>systemfunc</b>("ls 191001_2019102[0-9].nc") <br>fnam = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/array_append_record.shtml"><b>array_append_record</b></a> (fnam159, fnam209, 0)<br>print(fnam)</div><div><br></div><div>===</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 19, 2021 at 8:45 AM LIU Chang via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.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">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:"Times New Roman",Times,serif;font-size:12pt">Dear all,</span><br>
</div>
<div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-size:14px;background-color:rgb(255,255,255)">
<span style="font-size:12pt;font-family:"Times New Roman",Times,serif">I am trying to reading some netcdf files. These files names are 191001_20191015, 191001_20191016, ... 191001_20191029.</span><br>
<span style="font-size:12pt;font-family:"Times New Roman",Times,serif">When I code</span><span style="font-size:12pt;font-family:"Times New Roman",Times,serif"> </span><span style="font-size:12pt;font-family:"Times New Roman",Times,serif"><em style="box-sizing:border-box">files
= systemfunc("ls "+diri+"191001_201910[15:29].nc")</em></span><br style="box-sizing:border-box">
<span style="font-size:12pt;font-family:"Times New Roman",Times,serif">It will print 191001_20191010, 191001_20191011, ... 191001_20191029.</span><br style="box-sizing:border-box">
<span style="font-size:12pt;font-family:"Times New Roman",Times,serif">Would you mind helping me how to choose the files from number 15 to 29.</span></p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:0px;color:rgb(36,41,46);font-size:14px;background-color:rgb(255,255,255)">
<span style="font-size:12pt;font-family:"Times New Roman",Times,serif">Thank you very much!</span><br style="box-sizing:border-box">
<span style="font-size:12pt;font-family:"Times New Roman",Times,serif">Chang</span></p>
</div>
</div>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>