Main Content

cdflib.getCacheSize

Number of cache buffers

Syntax

numBuffers = cdflib.getCacheSize(cdfid)

Description

numBuffers = cdflib.getCacheSize(cdfid) returns the number of cache buffers used for the Common Data Format (CDF) file identified by cdfid. For information about cache schemes, see the CDF User's Guide on NASA's Space Physics Data Facility website.

Examples

collapse all

Open a sample CDF file and get its cache size.

cdfid = cdflib.open("example_364.cdf");
numBuffers = cdflib.getCacheSize(cdfid)
numBuffers = 
200000

Close the CDF file and remove the cdfid variable.

cdflib.close(cdfid)
clear cdfid

Tips

  • This function corresponds to the CDF library C API routine CDFgetCacheSize.

  • To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.