Compression reserve percentage for variable
percent = cdflib.getVarReservePercent(cdfId,varNum)
percent = cdflib.getVarReservePercent(cdfId,varNum)
returns the compression reserve percentage for a variable in a Common
Data Format (CDF) file. This operation only applies to compressed
variables.
cdfId
identifies the CDF file. varNum
is
a numeric value that identifies the variable. Variable numbers are
zero-based.
Open the example CDF file, get the number of a compressed variable, and then determine the reserve percent for the variable.
cdfid = cdflib.open('example.cdf'); varnum = cdflib.getVarNum(cdfid,'Temperature'); percent = cdflib.getVarReservePercent(cdfid,varnum); cdflib.close(cdfid);
This function corresponds to the CDF library C API routine CDFgetzVarReservePercent
.
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.