The following tools are very useful for working with NARCCAP data.
Outputs contents of a netCDF file as ascii. From Unidata, part of the NetCDF libraries. http://www.unidata.ucar.edu/software/netcdf/index.html
Useful options:
ncdump -h -- prints headers
ncdump -v variable -- prints a variable
ncdump -f n1,n2 -- specify precision of output
ncdump -l length -- specify line length of output
Example output: pr-ncdump.csv -- produced using ncdump -p 5,5 -l 2000 pr_WRFP_2001010103_clim.nc
NCO is a package of command-line utilities for manipulating netCDF files. Each NCO command does one very specific kind of manipulation, but you can combine them to powerful effect.
There are a number of options common to most or all NCO commands. These include -v for specifying the variable and -d for choosing a dimensional slice. Some NCO commands make use of a "record" dimension. This needs to be the first dimension and is unlimited in extent. In NARCCAP data, this is always the time dimension.
NCO Documentation: http://nco.sourceforge.net/nco.htmlseasonal-average -- Shellscript using NCO commands to generate seasonal climatology
NCL is an interpreted programming language for scientific analysis and visualization. It is designed with NetCDF in mind and allows easy and transparent access to NetCDF data files. It has a large and powerful plotting library oriented toward geophysical data.
NCL's syntax is FORTRAN-like. It supports the idea of coordinate variables and attributes associated with variables. Most parameters are passed to functions via "resource" attributes.
2d-time-plot.ncl Plot a timeslice from a file. Used in NARCCAP QC process. Example results.
Extensive reference and support materials are available on the NCL website: http://www.ncl.ucar.edu/
There are a number of other tools for working with netCDF data.
| Package | Description | URL |
|---|---|---|
| CDAT | Modular data analysis environment | http://www-pcmdi.llnl.gov/software-portal/cdat/ |
| CDO | Like NCO, but for climate model data | http://www.mpimet.mpg.de/fileadmin/software/cdo/ |
| Ferret | Oceanographic visualization/analysis tool | http://ferret.wrc.noaa.gov/Ferret/ |
| IDL | Commercial scientific analysis package | http://www.ittvis.com/idl/index.asp |
| Matlab | Commerical scientific analysis package | http://www.mathworks.com/products/ |
| NumPy | Python scientific computing libraries | http://numpy.scipy.org/ |
| PyNGL | Scientific visualization for Python | http://www.pyngl.ucar.edu/ |
| R | Statistical computing language | http://www.r-project.org/ |