[ncl-talk] loop over a unique filename

Xi Chang xi.chang01 at gmail.com
Tue Jul 12 07:34:10 MDT 2016


Dear NCL,

I have a unique *nc file like this (with increment 1):

data.0001.nc
data.0002.nc
data.0003.nc
.
.
data.0010.nc
data.0011.nc
data.0012.nc
.
.
.
data.0101.nc
data.0102.nc

I want to call this data using a loop, something like this:

t=1,1

input="/dir/data.000+"t".nc

but it doesnt work when then zero is reduced infront of the filename.
anys suggestion how to call this files on a loop?

Thanks

Chang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160712/87c85e38/attachment.html 


More information about the ncl-talk mailing list