NetCDF

Category: Libraries-IO

Description

Network Common Data Form (NetCDF) is an interface for array-oriented data access and a library that provides an implementation of the interface.

More information is available at the NetCDF Unidata Homepage.

Use

netcdf is available as a module. Cray provides netcdf builds as well as NICS. The Cray compiler wrappers will automatically attempt to link to the Cray built netcdf libraries if a Cray netcdf modulefile is loaded.

Note: The Cray wrappers automatically link against the netcdf libraries when an environment variable is set (currently, NETCDF_DIR) and will "process" the path in this environment variable. If you don't want to have the Cray netcdf libraries linked against automatically (even if the module is not loaded), make sure this environment variable is not set.

On the other hand, if a NICS-built netcdf module is loaded (from /sw), then the following examples can be used as reference to compile and link your program (example.f90) to the netcdf libraries.


FORTRAN 
  ftn example.f90 ${NETCDF_FLIB}

The environment variables given above are set in the module file - they are locally defined.  

C 
  cc -o example.x example.c ${NETCDF_CLIB}

Note the difference between NETCDF_FLIB and NETCDF_CLIB for Fortran and C, respectively.

Support

This package has the following support level : Supported

Available Versions

Version Available Builds
pgi gnu pathscale Other
4.0.1
v
v
u
u
3.6.2
v
v
v
v
v
v
v
4.0.0
v
u
v
u
v
u
u
u
u
u
3.6.3
v
v
v
v
v