cdflib.setStageCacheSize

Specify number of staging cache buffers for Common Data Format (CDF) file

Syntax

cdflib.setStageCacheSize(cdfId,numBuffers)

Description

cdflib.setStageCacheSize(cdfId,numBuffers) specifies the number of staging cache buffers for a Common Data Format (CDF) file. For information about CDF cache schemes, see the CDF User's Guide.

cdfId identifies the CDF file. numBuffers is a numeric value that specifies the number of buffers.

Examples

Open the example CDF file and specify the number of cache buffers used.

cdfId = cdflib.open('example.cdf');

% Get current number of staging cache buffers
size = cdflib.getStageCacheSize(cdfId)

size =

   125

% Specify new cache size value.
cdflib.setStageCacheSize(cdfId, 200)

% Get size again.
size = cdflib.getStageCacheSize(cdfId)

size =

   200

% Clean up
cdflib.close(cdfId)

clear cdfId

References

This function corresponds to the CDF library C API routine CDFsetStageCacheSize.

To use this function, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site.

For copyright information, see the cdfcopyright.txt file.

Was this topic helpful?