Main Content

netcdf.getChunkCache

Return default chunk cache settings for netCDF library

Description

example

[csize,nelems,premp] = netcdf.getChunkCache() returns the default chunk cache settings.

Examples

collapse all

Determine information about the chunk cache size used by the netCDF library.

[csize, nelems, premp] = netcdf.getChunkCache();

Output Arguments

collapse all

Total size of the raw data chunk cache in bytes, returned as a positive integer scalar.

Data Types: double

Number of elements to hold in the raw chunk data cache, returned as a positive integer scalar.

Data Types: double

Preempting fully read chunks in the chunk cache handled by the library, returned as a scalar value between 0 and 1. 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.

Data Types: double

Tips

  • This function corresponds to the nc_get_chunk_cache function in the netCDF library C API.

Version History

Introduced in R2011b