Set default chunk cache settings for NetCDF library
netcdf.setChunkCache(csize,nelems,premp) sets the default chunk cache settings used by the NetCDF library.
Settings apply for subsequent file open or create operations, for the remainder of the MATLAB session or until you issue a clear mex call. This function does not change the chunk cache settings of files already open.
Scalar double specifying the total size of the raw data chunk cache in bytes.
Scalar double specifying the number of chunk slots in the raw data chunk cache hash table.
Scalar double, between 0 and 1, inclusive, that specifies how the library handles preempting fully read chunks in the chunk cache. A value of 0 means fully read chunks are treated no differently than other chunks, that is, preemption occurs solely based on the Least Recently Used (LRU) algorithm. A value of 1 means fully read chunks are always preempted before other chunks.
This example sets the cache chunk size used by the NetCDF library.
netcdf.setChunkCache(32000000, 2003, .75)
This function corresponds to the nc_set_chunk_cache function in the NetCDF library C API.
For copyright information, read the netcdfcopyright.txt and mexnccopyright.txt files.