nc_varinq_datatypeΒΆ
nc_varinq_datatype returns the data type of a variable when given its ID.
-
datatype = nc_varinq_datatype(ncid, varid)
Return Value
datatype is the data type of the variable with the ID varid 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
-
ncid
Identifies the netCDF file.
-
varid
varid is the ID of the variable.
See also
id-1540160