Re: file names

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Feb 14 2012 - 09:26:02 MST

See:

http://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml

Example 4

On 02/14/2012 09:04 AM, Xiaoyan Ma wrote:
> Hi all,
>
> I am reading in variables from quite a few files. The files format as below
>
> n200501.2010307062519.000500509572.variable1.nc
> n200502.2010307062612.000500509673.variable1.nc
> n200503.2010310025803.000500510213.variable1.nc
> ...
> i..e. the numbers between first dot and second last dot are different.
>
> I used the below to read the files
> do nt = 1, ntim
> fname = "n2005"+sprinti("%0.2i", nt)+"*.variable1.nc"
> end do
>
> but it seems using * doesn't work, how to read in these files?
>
> Thanks,
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 14 09:26:21 2012

This archive was generated by hypermail 2.1.8 : Fri Feb 17 2012 - 08:50:10 MST