nc_get_enum_valuesΒΆ

nc_get_enum_values return a matrix with enum values or an empty string.

smLabel = nc_get_enum_values(ncid, varid)

Return Value

smLabel is a string matrix with two colums. The first column contains the value as a string and the second column contains the text. If the channel does not contain the attribute _nc_enum the return value is an empty string.

Parameters

ncid

Identifies the netCDF file.

varid

varid is the ID of a variable.

Comment

Returns the value of the variable attribute _nc_enum.

Example

* smLabel = nc_get_enum_values(ncid, varid);
* smLabel
   3SNA
   2INT
   1ANST
   0NANST
* strtod(smLabel[;1])
   3.0000
   2.0000
   1.0000
   0.0000

History

Version Description
R2014.0 New

id-331005