Hi there,
I am not sure if this problem has much to do with NCL, but since it occurs during a script execution I thought I'd find out whether anybody has had this experience. With the loop below, I get an error:
sh: pipe error: Too many open files
at approximately iteration 500. I am trying to get some information from the file name, and it appears that in this case the systemfunc commands within the loop are the offenders. When either one of these are removed, I don't have any problems. Any ideas for a solution?
begin
infiles = systemfunc("ls -1 sgpsonde*")
nfiles = dimsizes(infiles)
do ifile = 0, nfiles-1
thisfile = infiles(ifile)
print(ifile)
; remove one of the next two lines and I am OK...
ctimestamp = systemfunc("echo "+thisfile+" | awk -F. '{print $4}'")
cdatestamp = systemfunc("echo "+thisfile+" | awk -F. '{print $3}'")
;
delete(ctimestamp)
delete(cdatestamp)
infile = addfile(thisfile,"r")
delete(infile)
end do
end
-- Joshua Hacker Advanced Studies Program NCAR/UCAR email: hacker@ucar.edu voice: 303-497-8188 fax: 303-497-8171_______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Mon Nov 03 2003 - 09:37:49 MST