<div dir="ltr"><div>Hi Yun,</div><div><br></div>I don't think you need the ".nc" suffix for NetCDF files -- if no suffix is present, NCL will try to open the file as NetCDF.<div><br></div><div>Rick</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 19, 2014 at 11:00 AM, Yun Yue <span dir="ltr"><<a href="mailto:yunyue@huskers.unl.edu" target="_blank">yunyue@huskers.unl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Guys.<br>
Do you know how to use addfiles if my wrfoutput has no .nc suffix.<br>
I used<br>
files = systemfunc("ls" +wrfdirectory+wrfout_d01_2012* +".nc")<br>
a = addfiles(files, "r")<br>
ListSetType(a,"join")<br>
time = a[:]->Times(:,0,:)<br>
But I got the error can't find nc file.<br>
How can I modify the suffix of files by program. I found a topic in ncl talk, just messy code I can't see clearly.<br>
Thank you.<br>
Yun<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>