NetCDF
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 Hopper
There are separate NetCDF installations provided by Cray and by NERSC. Cray installations are recommended because they are simpler to use. To see the available installations and versions use the following command:
module avail netcdf
You will see that Cray installations are under /opt and NERSC installations are under /usr/common/usg. The default NetCDF library is compiled with PGI is provided by Cray. Loading the Cray NetCDF modulefiles will also load an hdf5 modulefile.
Using the Cray NetCDF Library with PGI
No compile or link options are required as long as you use the Cray compiler wrappers:
% module load netcdf
% ftn ...
% cc ...
% CC ...
Using the Cray NetCDF with Pathscale:
No compile or link options are required as long as you use the Cray compiler wrappers:
% module swap PrgEnv-pgi PrgEnv-pathscale
% module load netcdf
% ftn ...
% cc ...
% CC ...
Using the NERSC NetCDF Library:
The $NETCDF compile option must be used.
% module load netcdf/4.1.3-nersc
% ftn ... $NETCDF
% cc ... $NETCDF
% CC ... $NETCDF
Using the NERSC NetCDF Library Compiled with Intel
% module swap PrgEnv-pgi PrgEnv-intel
% module load netcdf/4.1.3-nersc
% ftn ... $NETCDF
% cc ... $NETCDF
% CC ... $NETCDF
Notice that on Hopper, all object files need to be listed on the command line before the netcdf libraries while linking.
Using NetCDF on Carver and Euclid
The default library is compiled using PGI. On these machines you need to load both modulefiles explicilty and use compiler options:
% module load netcdf hdf5
% mpif90 -Msecond_underscore $NETCDF $HDF5 ...
% mpicc $NETCDF $HDF5 ...
% mpiCC $NETCDF $HDF5 ...
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 formats.
To access the NetCDF operators, just load the nco modulefile with the module load nco command. This command will automatically load the NetCDF modulefile.
NCCMP
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 modulefile with the module load nccmp command. This command will automatically load the NetCDF modulefile.
Climate Data Operators (CDO)
The Climate Data Operators (CDO) are a collection of command line operators to manipulate and analyse 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 modulefile cdo with the module load cdo command. This command will automatically load the NetCDF modulefile.
Documentation
The NetCDF software was developed at the Unidata Program Center in Boulder, Colorado.
Availability at NERSC
Package | Platform | Category | Version | Module | Install Date | Date Made Default |
---|---|---|---|---|---|---|
netcdf | carver | libraries/ I/O | 4.0.1 | netcdf/4.0.1 | 2009-12-05 | 2009-12-05 |
netcdf | carver | libraries/ I/O | 4.1.1 | netcdf/4.1.1 | 2012-01-16 | 2012-01-16 |
netcdf | carver | libraries/ I/O | 4.1.3 | netcdf/4.1.3 | 2012-05-17 | |
netcdf | euclid | libraries/ I/O | 4.0.1 | netcdf/4.0.1 | 2010-04-23 | 2010-04-23 |
netcdf | euclid | libraries/ I/O | 4.1.1 | netcdf/4.1.1 | 2012-01-16 | 2012-01-16 |
netcdf | euclid | libraries/ I/O | 4.1.3 | netcdf/4.1.3 | 2012-05-17 | |
netcdf | hopper | libraries/ I/O | 3.6.2 | netcdf/3.6.2 | 2010-08-18 | |
netcdf | hopper | libraries/ I/O | 4.0.1.3 | netcdf/4.0.1.3 | 2010-08-18 | 2010-08-18 |
netcdf | hopper | libraries/ I/O | 4.1.1.0 | netcdf/4.1.1.0 | 2010-09-01 | 2010-09-01 |
netcdf | hopper | libraries/ I/O | 4.1.2 (Cray version) | netcdf/4.1.2 | 2011-11-07 | |
netcdf | hopper | libraries/ I/O | 4.1.3 (Cray version) | netcdf/4.1.3 | 2012-01-17 | 2012-01-25 |
netcdf | hopper | libraries/ I/O | 4.1.3-nersc | netcdf/4.1.3-nersc | 2012-01-16 | 2012-01-16 |
netcdf | hopper | libraries/ I/O | 4.2.0 (Cray version) | netcdf/4.2.0 | 2012-06-15 | 2012-08-15 |
NetCDF | pdsf | libraries/ general | 3.6.1 | NetCDF/3.6.1 | 2012-03-09 |
Package | Platform | Category | Version | Module | Install Date | Date Made Default |
---|---|---|---|---|---|---|
nco | carver | libraries/ I/O | 4.0.2 | nco/4.0.2 | 2010-07-16 | 2010-07-16 |
nco | carver | libraries/ I/O | 4.0.5 | nco/4.0.5 | 2012-01-14 | 2012-01-14 |
nco | euclid | libraries/ I/O | 4.0.2 | nco/4.0.2 | 2010-07-16 | 2010-07-16 |
nco | euclid | libraries/ I/O | 4.0.5 | nco/4.0.5 | 2012-01-14 | 2012-01-14 |
nco | euclid | libraries/ I/O | 4.0.8 | nco/4.0.8 | 2012-01-14 | |
nco | hopper | libraries/ I/O | 4.0.5 | nco/4.0.5 | 2011-03-10 | 2012-01-14 |
nco | hopper | libraries/ I/O | 4.0.8 | nco/4.0.8 | 2012-01-14 |
Package | Platform | Category | Version | Module | Install Date | Date Made Default |
---|
Package | Platform | Category | Version | Module | Install Date | Date Made Default |
---|---|---|---|---|---|---|
cdo | carver | libraries/ I/O | 1.4.1 | cdo/1.4.1 | 2012-01-13 | 2012-01-13 |
cdo | carver | libraries/ I/O | 1.4.6 | cdo/1.4.6 | 2012-05-24 | 2012-05-25 |
cdo | euclid | libraries/ I/O | 1.4.3 | cdo/1.4.3 | 2010-04-23 | 2010-04-23 |
cdo | euclid | libraries/ I/O | 1.4.5.1 | cdo/1.4.5.1 | 2012-01-14 | |
cdo | euclid | libraries/ I/O | 1.4.6 | cdo/1.4.6 | 2012-01-14 | 2012-01-14 |
cdo | hopper | libraries/ I/O | 1.4.6 | cdo/1.4.6 | 2011-03-07 | 2012-01-14 |