Python code using
xarray.open_dataarray() or similar functions reading from NetCDF4 use an
that automatically closes unneeded files.
As of xarray 0.11.0, the obsolete
autoclose=True option should no longer be used.
Problems fixed by LRU cache: the LRU cache used to open NetCDF4 files with xarray fixes these problems, and gives high performance:
segmentation faultwhile reading NetCDF4 .nc files, where the same file is reopened in the program.
OSErrorfrom too many open files, where even increasing