<div dir="ltr"><div dir="ltr"><div dir="ltr">Only fine tuning...<br><br>wildcard1 = "191001_2019101[5-9].nc"<br>wildcard2 = "191001_2019102[0-9].nc"<br>files = systemfunc ("ls -1 " + wildcard1 + " " + wildcard2)</div><div dir="ltr"><br></div><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 19, 2021 at 9:33 AM Dennis Shea via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.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>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" target="_blank"><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" target="_blank">ncl-talk@mailman.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 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></blockquote></div></blockquote></div></div></div></div>