netCDF

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.

Installations on NSC systems

Tetralith and Sigma

netCDF is available via the module system on Tetralith and Sigma. For more information about available versions, please see the Tetralith and Sigma Software list.

How to run

If all you want to do is run the netCDF utilities:

nc-config
nccopy
ncdump
ncgen
ncgen3
ncxx4-config
nc-config

Simply directly load the utils module:

module load netCDF-HDF5-utils/4.9.2-1.12.2-hpc1-intel-2023a-eb

If you are compiling programs that require netcdf or hdf5 libraries, first load an appropriate toolchain (e.g. buildenv-intel/2023a-eb), and then load the corresponding netCDF-HDF5 module (e.g. netCDF-HDF5/4.9.2-1.12.2-hpc1)

module load buildenv-intel/2023a-eb
module load netCDF-HDF5/4.9.2-1.12.2-hpc1-intel-2023a-eb

Loading the netCDF-HDF5 module sets an environment variable ${NETCDF_DIR}. ${NETCDF_DIR} points to the base folder containing the netcdf installation. 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 -lnetcdf -lnetcdff

User Area

User support

Guides, documentation and FAQ.

Getting access

Applying for projects and login accounts.

System status

Everything OK!

No reported problems

Self-service

SUPR
NSC Express