Next: Intrinsic mathematical functions, Previous: Irregular grids, Up: ncap2 netCDF Arithmetic Processor
ncap2 contains a small (and growing) library of intrinsic functions. In addition to the standard mathematical functions (see Intrinsic mathematical functions), ncap2 currently supports packing and unpacking.
pack(x)
unpack(x)
These intrinsic functions allow ncap2 to convert variables on disk among the available types supported by netCDF.
byte(x)
NC_BYTE
Converts x to external type NC_BYTE
, a C-type signed char
.
char(x)
NC_CHAR
Converts x to external type NC_CHAR
, a C-type unsigned char
.
double(x)
NC_DOUBLE
Converts x to external type NC_DOUBLE
, a C-type double
.
float(x)
NC_FLOAT
Converts x to external type NC_FLOAT
, a C-type float
.
int(x)
NC_INT
Converts x to external type NC_INT
, a C-type int
.
short(x)
NC_SHORT
Converts x to external type NC_SHORT
, a C-type short
.