Reading in All-Variable Mode
Function Syntax
Read data of the char type in all-variable mode.
int ncmpi_get_var_text_all(int fileId, int varId, char *buf)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
fileId |
File ID |
Non-negative integer |
Input |
varId |
Variable ID |
Non-negative integer |
Input |
*buf |
Pointer to the data to read |
Non-empty |
Output |
Return Value
- Success: NC_NOERR
- Failure: An error code is returned.
Error Code
Error Code |
Description |
|---|---|
NC_EBADID |
Invalid ncid |
NC_ENOTINDEP |
Independent I/O operation attempted in collective mode |
NC_EINVALCOORDS |
Specified index exceeding the rank range of the specified variable |
NC_ENOTVAR |
Invalid variable ID |
Parent topic: PnetCDF Bridging Functions