NERSCPowering Scientific Discovery Since 1974


Description and Overview

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.  This includes the libnetcdf.a library as well as the NetCDF Operators (NCO), Climate Data Operators (CDO), NCCMP, and NCVIEW packages.

Files written with previous versions can be read or written with the current version.

Using NetCDF on Cray System

NetCDF libraries on the Edison and Cori are provided by Cray. To see the available Cray installations and versions use the following command:

module avail cray-netcdf

Loading the Cray NetCDF module files will also load a cray-hdf5 module file. 

Using the Cray NetCDF Library 

No compile or link options are required as long as you use the Cray compiler wrappers. Below is an example for using the Cray compiler on Edison:

% module swap PrgEnv-intel PrgEnv-cray  (# or similar if needed to swap to another compiler)
% module load cray-netcdf
% ftn ...
% cc ...
% CC ...

NetCDF Operators (NCO)

The NetCDF Operators (NCO) are a suite of file operators that facilitate manipulation and analysis of self-describing data stored in the NetCDF or HDF4/5 formats.

To access the NetCDF operators, just load the nco module file with the  module load nco command. This command will automatically load the NetCDF module file.


The NCCMP tool compares two NetCDF files bitwise or with a user-defined tolerance (absolute or relative percentage).

To use NCCMP, just load the nccmp module file with the  module load nccmp command. This command will automatically load the NetCDF module file.

Climate Data Operators (CDO)

The Climate Data Operators (CDO) are a collection of command line operators to manipulate and analyze climate model data. Supported data formats are GRIB, netCDF, SERVICE, EXTRA and IEG. There are more than 350 operators available.

To use CDO, first load the module file cdo with the module load cdo command. This command will automatically load the NetCDF module file.


The NetCDF software was developed at the Unidata Program Center in Boulder, Colorado.

Availability at NERSC

PackagePlatformCategoryVersionModuleInstall DateDate Made Default
netcdf carl libraries/ I/O 4.3.2 netcdf/4.3.2 2016-07-06 2016-07-09
netcdf carl libraries/ I/O 4.3.2-fpic netcdf/4.3.2-fpic 2016-08-29
netcdf cori libraries/ I/O 4.3.2 netcdf/4.3.2 2016-06-10 2016-07-09
netcdf cori libraries/ I/O 4.4.1 netcdf/4.4.1 2016-07-19
NetCDF pdsf libraries/ general 3.6.1 NetCDF/3.6.1 2012-03-09

PackagePlatformCategoryVersionModuleInstall DateDate Made Default
nco cori libraries/ I/O 4.6.0 nco/4.6.0 2016-05-18 2016-07-26
nco cori libraries/ I/O 4.6.1 nco/4.6.1 2016-08-11 2016-08-24
nco cori libraries/ I/O 4.6.2 nco/4.6.2 2016-11-29 2016-11-30
nco cori libraries/ I/O 4.6.4 nco/4.6.4 2017-06-02
nco cori libraries/ I/O 4.6.6 nco/4.6.6 2017-05-01 2017-05-01
nco cori libraries/ I/O 4.6.7 nco/4.6.7 2017-06-11 2017-06-11
nco cori libraries/ I/O 4.6.9 nco/4.6.9 2017-10-20
nco edison libraries/ I/O 4.6.7 nco/4.6.7 2017-08-08 2017-08-08
nco edison libraries/ I/O 4.6.9 nco/4.6.9 2017-10-20

PackagePlatformCategoryVersionModuleInstall DateDate Made Default
nccmp cori other/ I/O nccmp/ 2016-07-03 2017-08-08
nccmp edison other/ I/O nccmp/ 2017-08-08 2017-08-08

PackagePlatformCategoryVersionModuleInstall DateDate Made Default
cdo cori libraries/ I/O cdo/ 2016-07-06 2016-07-06
cdo cori libraries/ I/O 1.7.0 cdo/1.7.0 2016-01-25 2016-07-02
cdo edison libraries/ I/O 1.9.0 cdo/1.9.0 2017-08-08 2017-08-08