|4.2||NetCDF version 4.2|
NetCDF is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.
Load the NetCDF module corresponding to the version you want to use, e.g
module load netcdf/4.2-i1214-hdf5-1.8.9
This will add the NetCDF binaries to your search path:
nc-config nccopy ncdump ncgen ncgen3 ncxx4-config nc-config
The environment variable $NETCDF_DIR is also set. $NETCDF_DIR points to the base folder containing the netcdf installation (/software/apps/netcdf/VERSION/SUBVERSION/). Sub-folders from $NETCDF_DIR:
bin include lib share
You can build applications against the NetCDF libraries using the include files in $NETCDF_DIR/include and pre-built libraries in $NETCDF_DIR/lib. e.g.
icc -I $NETCDF_DIR/include -L $NETCDF_DIR/lib