Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

netcdf.setChunkCache

Set default chunk cache settings for NetCDF library

Syntax

netcdf.setChunkCache(csize,nelems,premp)

Description

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.

Input Arguments

csize

Scalar double specifying the total size of the raw data chunk cache in bytes.

nelems

Scalar double specifying the number of chunk slots in the raw data chunk cache hash table.

premp

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.

Examples

This example sets the cache chunk size used by the NetCDF library.

 netcdf.setChunkCache(32000000, 2003, .75)

References

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.

Was this topic helpful?