The Max Planck Institute for Meteorology has developed CDO, which supports GRIB, CF-compliant netCDF, and several other formats. There are more than 400 operators available. CDO supports rectangular, curvilinear and unstructured grid types.
CDO includes the ability to pipe an output stream of one operator into another, eliminating unnecessary I/O and temporary files, and allowing parallel processing.
Categories of CDO operators include:
File information | Print information about datasets |
File operations | Copy, split and merge datasets |
Selection | Select parts of a dataset |
Comparision | Compare datasets |
Modification | Modify datasets |
Arithmetic | Arithmeticly process datasets |
Statistical values | Ensemble, field, vertical and time range statistic |
Regression | Detrend of time series |
Interpolation | Field, vertical and time interpolation |
Transformation | Spectral transformation |
Formatted I/O | ASCII input and output |
Climate indices | ECA Indices of Daily Temperature and Precipitation Extremes |
Some examples:
cdo info ifile
cdo diff ifile1 ifile2
cdo -f nc copy ifile ofile.nc
cdo sellonlatbox,120,-90,20,-20 ifile ofile
cdo ensmean ifile1 ifile2 ifile3 ifile4 ifile5 ifile6 ofile
NetCDF-4 note:
CDO supports the netCDF-4 classic data model with compression.