Skip to content

netcdf: C Libraries for NetCDF data format

Overview of package

Package: netcdf
Description: C Libraries for NetCDF data format
For more information: http://www.unidata.ucar.edu/software/netcdf
Categories: SoftwareDevelopment
DataFormat
License: OpenSource (University Corporation for Atmospheric Research/Unidata)

General Usage

NetCDF is a self-describing, machine-independent scientific data format. This package consists of libraries for C for reading and manipulating data in this format.

The following environmental variables have been defined:

  • $NETCDF_ROOT has been set to the root of the netcdf installation
  • $NETCDF_LIBDIR points to the directory containing the libraries
  • $NETCDF_INCDIR points to the directory containing the header files

You will probably wish to use these by adding the following flags to your compilation command (e.g. to CFLAGS in your Makefile):

  • -I$NETCDF_INCDIR

and the following flags to your link command (e.g. LDFLAGS in your Makefile):

  • -L$NETCDF_LIBDIR -Wl,-rpath,$NETCDF_LIBDIR

NOTE: The Fortran and C++ interfaces to NetCDF were split off from the standard NetCDF library years ago. If you intend to use such, you must "module load" the appropriate netcdf-fortran and/or netcdf-cxx modules as well as this module.

Available versions by cluster

This section lists the available versions of the package netcdfon the UMD HPC clusters.

Versions available on the Zaratan cluster

Version Module tags CPU(s) optimized for GPU ready?
4.7.3 4.7.3 zen Yes
4.9.2 4.9.2 icelake, x86_64, zen2 Yes
4.8.1 4.8.1 x86_64, zen2 Yes