6.2 Language Types Corresponding to netCDF external data types
The following table gives the netCDF external data types and the
corresponding type constants for defining variables in the FORTRAN
interface:
| Type | FORTRAN API Mnemonic | Bits
|
| byte
| NF_BYTE
| 8
|
| char
| NF_CHAR
| 8
|
| short
| NF_SHORT
| 16
|
| int
| NF_INT
| 32
|
| float
| NF_FLOAT
| 32
|
| double
| NF_DOUBLE
| 64
|
The first column gives the netCDF external data type, which is the
same as the CDL data type. The next column gives the corresponding
FORTRAN parameter for use in netCDF functions (the parameters are
defined in the netCDF FORTRAN include-file netcdf.inc). The last
column gives the number of bits used in the external representation of
values of the corresponding type.
Note that there are no netCDF types corresponding to 64-bit integers
or to characters wider than 8 bits in the current version of the
netCDF library.