NetCDF-4 files support all of the atomic data types from netCDF-3, plus additional unsigned integer types, 64-bit integer types, and a string type.
Type | C #define | Bits
|
byte | NC_BYTE | 8
|
unsigned byte | NC_UBYTE^ | 8
|
char | NC_CHAR | 8
|
short | NC_SHORT | 16
|
unsigned short | NC_USHORT^ | 16
|
int | NC_INT | 32
|
unsigned int | NC_UINT^ | 32
|
unsigned long long | NC_UINT64^ | 64
|
long long | NC_INT64^ | 64
|
float | NC_FLOAT | 32
|
double | NC_DOUBLE | 64
|
char ** | NC_STRING^ | string length + 1
|
^This type was introduced in netCDF-4, and is not supported in netCDF classic or 64-bit offset format files, or in netCDF-4 files if they are created with the NC_CLASSIC_MODEL flags.