Compression settings
[ctype,cparms,cpercentage] = cdflib.getCompression(cdfId)
[ctype,cparms,cpercentage] = cdflib.getCompression(cdfId)
returns information about the compression settings of a Common Data
Format (CDF) file.
|
Identifier of a CDF file, returned by a call to |
|
Character vector specifying compression type, such as |
|
The value of the parameter associated with the type of compression.
For example, for the |
|
The rate of compression, expressed as a percentage. |
Open the example CDF file and check the compression settings in the file.
cdfId = cdflib.open('example.cdf'); [ctype, cparms, cpercentage] = cdflib.getCompression(cdfId) ctype = GZIP_COMPRESSION cparms = 7 cper = 26 % Clean up cdflib.close(cdfId) clear cdfId
This function corresponds to the CDF library C API routine CDFgetCompression
.
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.