[ncl-talk] wrfout has no nc suffix

Yuqiang Zhang yuqiangzhang.thu at gmail.com
Fri Sep 19 11:36:35 MDT 2014


Hi Yun,

Modified your code like this:

files = systemfunc("ls" +wrfdirectory+"wrfout_d01_2012*")
a = addfiles(files + ".nc", "r")

You are listing "wrf*.nc" files by the "systemfunc" function, but actually
you didn't have the right files' name. 

Regards,
Yuqiang

-----Original Message-----
From: ncl-talk-bounces at ucar.edu [mailto:ncl-talk-bounces at ucar.edu] On Behalf
Of Yun Yue
Sent: Friday, September 19, 2014 1:01 PM
To: ncl-talk at ucar.edu
Subject: [ncl-talk] wrfout has no nc suffix

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
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



More information about the ncl-talk mailing list