too many open files

From: Ramon Docto <mondocto2_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 07 2013 - 23:30:49 MDT

Hello list, I am trying to construct an object in memory from (~2000) files using addfiles(). I have read the documentation about avoiding excess open filehandles by using the "SuppressClose" fileoption but have not found an example explicitly showing usage.   The code snippet below still fails with "too many open files" errors: fls = systemfunc ("ls " + ipath + iname + "*.nc")                                        f   = addfiles (fls, "r")                                                                ListSetType (f, "cat") ;; concatenate (default)                                          setfileoption(f, "SuppressClose", False) ;; avoid excess open files                      tmax    = f[:]->tmaxscr(3:239:4,{lats(0):lats(1)},{lons(0):lons(1)})                     tmin    = f[:]->tminscr(3:239:4,{lats(0):lats(1)},{lons(0):lons(1)}) Can anyone advise on this? Thanks, Ramon

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Jun 7 23:31:00 2013

This archive was generated by hypermail 2.1.8 : Tue Jun 11 2013 - 12:03:58 MDT