netCDF

“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.”

Usage

All of the module files for netCDF will also load:

After connecting to Stanage (see Establishing a SSH connection), start an interactive session with the following command:

srun --pty bash -i

To load netCDF run one of the following:

module load netCDF/4.9.0-gompi-2022a
module load netCDF/4.9.0-gompi-2022b
module load netCDF/4.8.1-gompi-2021b
module load netCDF/4.8.0-gompi-2021a
module load netCDF/4.7.4-gompi-2020a
module load netCDF/4.7.4-gompi-2020b
module load netCDF/4.7.4-iimpi-2020a

To load the Fortran bindings for netCDF run one of the following:

module load netCDF-Fortran/4.6.0-gompi-2022a
module load netCDF-Fortran/4.6.0-gompi-2022b
module load netCDF-Fortran/4.5.3-gompi-2021a
module load netCDF-Fortran/4.5.3-gompi-2021b
module load netCDF-Fortran/4.5.3-gompi-2020b
module load netCDF-Fortran/4.5.2-gompi-2020a
module load netCDF-Fortran/4.5.2-iimpi-2020a

To load the C++ bindings for netCDF run one of the following:

module load netCDF-C++4/4.3.1-gompi-2022a

Testing

To verify the installation of the NetCDF components, you can use the following commands to check the general information and confirm the presence of specific bindings. For more details, you can refer to the NetCDF installation guide.

# General NetCDF installation
nc-config --all # General information on the NetCDF installation

# NetCDF C++ components
nc-config --all # General information on the NetCDF installation
ncxx4-config --all # Check whether NetCDF C++ components have been installed

# NetCDF Fortran components
nc-config --all # General information on the NetCDF installation
nf-config --all # Check whether NetCDF Fortran components have been installed