Specify number of compression cache buffers
cdflib.setCompressionCacheSize(cdfId,numBuffers)
cdflib.setCompressionCacheSize(cdfId,numBuffers)
specifies the number of cache buffers used for the compression scratch
CDF file. For more information about CDF cache schemes, see the CDF
User's Guide.
cdfId
identifies the CDF file. numBuffers
specifies
the number of buffers.
Create a CDF file and specify the number of compression cache buffers used. To run this example you must be in a writable folder.
cdfId = cdflib.create('your_file.cdf'); % Get the current number of compression cache buffers numBuf = cdflib.getCompressionCacheSize(cdfId) numBuf = 80 % Set a new value cdflib.setCompressionCacheSize(cdfId,100) % Check the new value numBuf = cdflib.getCompressionCacheSize(cdfId) numBuf = 100 % Clean up cdflib.delete(cdfId) clear cdfId
This function corresponds to the CDF library C API routine CDFsetCompressionCacheSize
.
To use this function, you must be familiar with the CDF C
interface. Read the CDF documentation at the CDF website
.
For copyright information, see the cdfcopyright.txt
file.