netCDF

libraries for representing scientific data

Introduction

Documentation for this package can be found at: http://www.unidata.ucar.edu/software/netcdf/docs/

From the ( http://www.unidata.ucar.edu/software/netcdf/docs/faq.html#whatisit ):

"NetCDF (network Common Data Form) is a set of interfaces for array-oriented data access and a freely distributed collection of data access libraries for C, Fortran, C++, Java, and other languages. The netCDF libraries support a machine-independent format for representing scientific data. Together, the interfaces, libraries, and format support the creation, access, and sharing of scientific data."

Using NetCDF on RCC Resources

On HPC NetCDF can be accessed and used for many of these function. We will consider an example from the homepage ( http://www.unidata.ucar.edu/software/netcdf/examples/programs/ ) compiling and linking NetCDF libraries on HPC using the gnu compiler,

[fsuID_hpc-login-40 fftw]$ gfortran -c test_netcdf.f -I/opt/hpc/gnu/include/
[fsuID_hpc-login-40 fftw]$ gfortran test_netcdf.o -L/opt/hpc/gnu/lib64/ -lnetcdf

Using gnu is not necessary. These libraries are also available to other compilers. Using a different compiler will simply mean linking and including a different path, for example:

-I/opt/hpc/<compiler>/include/
-L/opt/hpc/<compiler>/lib64/