addfiles bug

From: jam hong <cumarporn_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 02 2009 - 16:00:40 MST

 Dear all

I try to add many files *.nc to parameter but I got the fatal: too many files errors. I used ncl version 5.1.1.

Do you know how can I fix this?

Thanks

Jam

 

fils = new(1464,string)
n1 = 0
n2 = 0
do i = 4,5
        tmp_files = systemfunc("ls /d3/jam/hrldas_modis_drought/20070" + i + "*LDASOUT*.nc")
        n2 = n1+ (dimsizes(tmp_files) - 1)
        print(n2)
; print(tmp_files)
        fils(n1:n2) = tmp_files
        n1 = n2+1
        print(n1)
        delete(tmp_files)
; i = i + 1
end do
print(fils)
a = addfile("./geo_em.d01.nc", "r")
       ; a1 = addfile(a, "r")
;print(f)
;print(a1)
lat1 = 35.931093
lon1 = -84.332424
loc = wrf_user_latlon_to_ij(a, lat1, lon1)
print(loc)
lat = loc(0)
lon = loc(1)
        f = addfiles(fils, "r")
v2tem = f[:]->SOIL_M(:,0,lat,lon)
                                               
_________________________________________________________________
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 2 16:00:14 2009

This archive was generated by hypermail 2.1.8 : Fri Nov 06 2009 - 09:15:29 MST