Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Next: , Previous: NetCDF-3 Variable Types, Up: Variables


6.4 NetCDF-4 Atomic Types

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.
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690