how to open files in different folders

From: yikun liu <queenbee0703_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 28 2011 - 11:12:24 MST

Hi,

I want to open .hdf data files that are in different folders. Is there any
Function or NCL Statement can help me with it?
another question. I use addfile and systemfunc to open specific files in
one folder

imonth=(/"0","00","03","06","09","12","15","18","21","24","27","30","33"/)
 do i =1,4
    if( i.lt.4)
        add_1 =
systemfunc("/home/lovecheese/DATA/2000/*"+"2000"+imonth(i*3)+"*.hdf")
        add_2 =
systemfunc("/home/lovecheese/DATA/2000/*"+"2000"+imonth(i*3+1)+"*.hdf")
        add_3 =
systemfunc("/home/lovecheese/DATA/2000/*"+"2000"+imonth(i*3+2)+"*.hdf")
        f1 =addfile(add_1,"r")
        f2 =addfile(add_2,"r")
        f3 =addfile(add_3,"r")
    else
        end if
  end do

but it said Permission denied. What's the problem?

Yikun

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 28 11:12:34 2011

This archive was generated by hypermail 2.1.8 : Wed Nov 30 2011 - 19:52:47 MST