Specify checksum mode
cdflib.setChecksum(cdfId,
mode
)
cdflib.setChecksum(cdfId,
specifies the checksum mode of a Common Data Format (CDF) file.mode
)
|
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
|
Create a CDF file and set the checksum mode. To run this example, you must be in a writable folder.
cdfid = cdflib.create('mycdf.cdf'); % Check initial value of checksum. mode = cdflib.getChecksum(cdfid) NO_CHECKSUM cdflib.setChecksum(cdfid,'MD5_CHECKSUM') % Verify the setting mode = cdflib.getChecksum(cdfid) MD5_CHECKSUM
This function corresponds to the CDF library C API routine CDFsetChecksum
.
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.