[ncl-talk] wrfout has no nc suffix

Yun Yue yunyue at huskers.unl.edu
Fri Sep 19 11:00:48 MDT 2014


Hi Guys.
Do you know how to use addfiles if my wrfoutput has no .nc suffix.
I used 
files = systemfunc("ls" +wrfdirectory+wrfout_d01_2012* +".nc")
a = addfiles(files, "r")
ListSetType(a,"join")
time = a[:]->Times(:,0,:) 
But I got the error can't find nc file.
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.
Thank you.
Yun


More information about the ncl-talk mailing list