Setting the Variable Access Mode
Function Syntax
nc_var_par_access(int ncid, int varid, int par_access)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
ncid |
File ID |
Non-negative integer |
Input |
varid |
Variable ID |
Non-empty |
Input |
par_access |
Access mode |
NC_COLLECTIVE or NC_INDEPENDENT |
Input |
Return Value
- Success: NC_NOERR
- Failure: An error code is returned.
Error Code
Error Code |
Description |
|---|---|
NC_EBADID |
Invalid ncid |
NC_ENOTVAR |
Invalid variable ID |
NC_EINVAL |
Invalid argument |
Parent topic: Information Setting