Main Content

netcdf.getConstantNames

Return list of constants known to netCDF library

Syntax

val = netcdf.getConstantNames

Description

val = netcdf.getConstantNames returns a list of names of netCDF library constants, definitions, and enumerations. When these names, returned as character vectors, are supplied as parameters to MATLAB® netCDF namespace functions, the functions automatically convert the constant to the appropriate numeric value.

This MATLAB function has no direct equivalent in the netCDF C interface.

Examples

nc_constants = netcdf.getConstantNames

nc_constants = 

    'NC2_ERR'
    'NC_64BIT_OFFSET'
    'NC_BYTE'
    'NC_CHAR'
    'NC_CLOBBER'
    'NC_DOUBLE'
    'NC_EBADDIM'
    'NC_EBADID'
    'NC_EBADNAME'
    'NC_EBADTYPE'
		...