Skip to Main Content Skip to Search
Product Documentation

cdflib.setValidate - Specify library validation mode

Syntax

cdflib.setValidate(mode)

Description

cdflib.setValidate(mode) specifies the validation mode of the Common Data Format (CDF) library. Specify the validation mode before opening any files.

Input Arguments

mode

Either of the following text strings, or its numeric equivalent:

'VALIDATEFILEon'Turns validation mode on. With validation mode on, the library performs sanity checks on the data fields in the CDF' file's internal data structures to make sure that the values are within valid ranges and consistent with the defined values/types/entries. This mode also ensures that variable and attribute associations within the file are valid. Note, however, that enabling this mode will, in most cases, slow down the file opening process, especially for large or very fragmented files.
'VALIDATEFILEoff'Turns validation mode off.

To get the numeric equivalent of these values, use cdflib.getConstantValue.

Examples

Set the validation mode of the CDF library.

cdflib.setValidate('VALIDATEFILEon');

References

This function corresponds to the CDF library C API routine CDFsetValidate. To use these functions, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site. For copyright information, see the cdfcopyright.txt file.

See Also

cdflib.getConstantValue | cdflib.getValidate

Tutorials

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS