From the official NetCDF FAQ page:
"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 the HPC, NetCDF can be accessed and used for many of the functions mentioned above. Below is an example of compiling and linking NetCDF libraries with the GNU compiler to run the program called
test_netcdf.f. The official NetCDF website provides a set of example programs.
$ gfortran -c test_netcdf.f -I/opt/rcc/gnu/include/ $ gfortran test_netcdf.o -L/opt/rcc/gnu/lib64/ -lnetcdf
Using GNU is not necessary; these libraries are also available to other compilers. To use a different compiler, simply link and include a different path using the following commands. Replace
<compiler> with the name of the compiler you wish to use.