Applications/Netcdf-c

From HPC
Jump to: navigation , search

Application Details

  • Description: NetCDF (network Common Data Form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.
  • Version: 4.4.1
  • Modules: netcdf-c/gcc/intelmpi/4.4.1
  • Licence: Github, open-source

Usage Examples

NetCDF is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. NetCDF was developed and is maintained at Unidata. Unidata provides data and software tools for use in geoscience education and research. Unidata is part of the University Corporation for Atmospheric Research (UCAR) Community Programs (UCP). Unidata is funded primarily by the National Science Foundation.

NetCDF Utilities

The ncdump command reads a netCDF file and outputs text in a format called CDL. The ncgen command reads a text file in CDL format and generates a netCDF data file. The nccopy command copies a netCDF file from one binary format to another, optionally changing compression and chunk size settings.

ncdump

The utility ncdump can be used to show the contents of netCDF files. By default, ncdump shows the CDL description of the file. This CDL description can be fed into ncgen to create the data file.

ncgen

The ncgen utility can take an ASCII input file, in CDL format, and generate a binary netCDF file. It is the opposite of ncdump.

nccopy

The nccopy utility can copy a netCDF file, changing the binary format, chunk sizes, compression, and other storage settings.


Interactive

While logged into a reserved compute node (c001):

[username@c001 ~]$ module add gcc/4.9.3
[username@c001 ~]$ module add openmpi/intel/1.8.8
[username@c001 ~]$ module add netcdf-c/gcc/intelmpi/4.4.1
[username@c001 ~]$ ncgen -o bar.nc foo.cdl


Next Steps





Modules | Main Page | Further Topics