Information about compression used by variable
[ctype,cparams,percent] = cdflib.getVarCompression(cdfId,
varNum)
[ctype,cparams,percent] = cdflib.getVarCompression(cdfId,
varNum)
returns information about the compression used
for a variable in a Common Data Format (CDF) File.
|
Identifier of a CDF file, returned by a call to |
|
Character vector identifying the type of compression. For a
list of compression types, see |
|
Any additional parameter required by the compression type. |
|
Numeric value indicating the level of compression, expressed as a percentage. |
Open the example CDF file and check the compression settings of any variable.
cdfid = cdflib.open('example.cdf'); % Check the compression setting of any variable in the file % The example checks the first variable (variable numbers are zero-based). [ctype params percent] = cdflib.getVarCompression(cdfid,0) ctype = NO_COMPRESSION params = [] percent = 100 % Clean up cdflib.close(cdfid); clear cdfid
This function corresponds to the CDF library C API routine CDFgetzVarCompression
.
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.