This is too general for a specific answer:
If all the files are in the same drectory
    diri  = "Full/Path/Name/"
    fili  = syatemfunc("cd "+diri+"; ls ????nc")
    nfili = dimsizes(fili)
    print("nfili="+nfili)
    print("==========")
    print(fili)
; process one file at a time
    do nf=0,nfili-1
       f = addfile(diri+fili(nf), "r")
         :
         :
    end do
Please see:
  http://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml
On 10/4/13 10:45 AM, Melissa Lazenby wrote:
> Hi
>
>
>
> I would like to loop through a set of 44 CMIP5 models for one of my ncl programs, do I just a do loop and an external model list? Or how do I go about it. Sorry I am new to loops in ncl, I would appreciate any advice on this.
>
> Many thanks!
>
>
>
> Kind Regards
>
> Melissa
>
>
>
> _______________________________________________
> 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 Fri Oct  4 14:08:07 2013
This archive was generated by hypermail 2.1.8 : Fri Oct 04 2013 - 16:45:17 MDT