cdflib.setChecksum
Specify checksum mode
Syntax
cdflib.setChecksum(cdfId,mode)
Description
cdflib.setChecksum(cdfId,
specifies the checksum mode of a Common Data Format (CDF) file.mode)
Input Arguments
| Identifier of a CDF file, returned by a call to | ||||
| One of the following character vectors or string scalars, or its numeric equivalent.
To get the numeric equivalent of these constants, use
|
Examples
Create a CDF file and set the checksum mode. To run this example, you must be in a writable folder.
cdfId = cdflib.create("your_file.cdf"); % Check initial value of checksum mode = cdflib.getChecksum(cdfId)
mode =
'NO_CHECKSUM'% Specify a new value for checksum cdflib.setChecksum(cdfId,"MD5_CHECKSUM") % Verify the setting mode = cdflib.getChecksum(cdfId)
mode =
'MD5_CHECKSUM'% Clean up cdflib.delete(cdfId) clear cdfId
Tips
This function corresponds to the CDF library C API routine
CDFsetChecksum.To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.