netcdf
- Version:
4.7.3
- Category:
data
- Cluster:
Loki
Description
netCDF (Network Common Data Form) is a set of software libraries and data formats that support the creation, access, and sharing of array-oriented scientific data.
netCDF is widely used in earth sciences, climate modeling, meteorology, oceanography, and related domains.
Documentation
$ nc-config --all
This will display include paths, library paths, compile flags, and feature support.
CLI tools:
- ncdump : Convert binary .nc files to human-readable text
- ncgen : Convert CDL text files into binary .nc files
- nc-config : Show compiler and linker flags
API:
- netcdf.h (C)
- netcdf.mod (Fortran, if available)
- netcdf4-python (if paired with Python)
Examples/Usage
Load the module:
$ module load data/netCDF/4.7.3-gcc-64
Compile a C program using netCDF:
$ gcc -o read_nc read_nc.c $(nc-config --cflags --libs)
View netCDF file content:
$ ncdump -h data.nc
Create a binary netCDF file from CDL format:
$ ncgen -o output.nc input.cdl
Check feature support:
$ nc-config --has-hdf5
$ nc-config --has-nc4
Unload the module:
$ module unload data/netCDF/4.7.3-gcc-64
Installation
Source code is obtained from Unidata