nc_attinq_datatype returns the data type of an attribute when given its ID and name.
Return Value
datatype is the data type of the attribute with the ID varid and the name ssName and is one of the following:
| Value | Meaning |
|---|---|
| NC_BYTE | Eight-bit data |
| NC_CHAR | For representing text strings as arrays of ASCII characters |
| NC_SHORT | 16-Bit integers |
| NC_LONG | 32-Bit integers |
| NC_FLOAT | 32-Bit IEEE floating-point |
| NC_DOUBLE | 64-Bit IEEE floating-point |
If an error occurs, datatype is -1.
Parameters
Identifies the netCDF file.
varid is the ID of the variable.
ssName is the name of the attribute.
See also
id-1631870