value = netcdf.getConstant(name)
| Parameter | Description |
|---|---|
| arguments | Input arguments follow the syntax shown above. File and group identifiers are numeric values returned by netCDF open, create, group, dimension, and variable definition calls. Named netCDF constants can be obtained with netcdf.getConstant. |
| Parameter | Description |
|---|---|
| value | Return value described by the syntax shown above. |
netcdf.getConstant converts a netCDF C library constant name to its numeric value.
Use constants instead of hard-coded numeric values for readable low-level code.
mode = netcdf.getConstant('NC_CLOBBER')
| Version | Description |
|---|---|
| 2.0.0 | initial version |