Re: addfiles bug

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 02 2009 - 16:12:47 MST

Hi Jam,

This is not a bug. See the last paragraph of the addfiles Description
section at
http://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml
for an explanation and a way to overcome the problem using the
setfileoption procedure to set 'SuppressClose' to False.
  -dave

On Nov 2, 2009, at 4:00 PM, jam hong wrote:

>
> 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)
> & nbsp; f = addfiles(fils, "r")
> v2tem = f[:]->SOIL_M(:,0,lat,lon)
>
> Keep your friends updated— even when you’re not signed in.
> _______________________________________________
> 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 Mon Nov 2 16:12:20 2009

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