Skip to main content

CDO

Introduction to CDO

CDO (Climate Data Operators) is a collection of operators for processing and analyzing climate and numerical weather prediction (NWP) data. It provides a comprehensive set of command-line tools for manipulating and analyzing climate data formats like GRIB, netCDF, and more. CDO is widely used in climate research, meteorology, and earth system science.

CDO supports operations such as statistical analyses, arithmetic calculations, regridding, and data manipulation. It is designed for efficiency and can handle large datasets commonly found in climate research. For more details, visit the official CDO documentation.

Using CDO with Modules

To use CDO on the terrabyte HPC system, load the CDO module with the following command:

# consider adding the module use line to your ~/.bashrc to always make terrabyte modules available 
module use /dss/dsstbyfs01/pn56su/pn56su-dss-0020/usr/share/modules/files/
module load cdo

Usage Examples

Once loaded, you can execute CDO commands to process climate data. Below are some examples of common CDO operations:

Example 1: File Information

To display information about a netCDF or GRIB file:

cdo -info input.nc

Example 2: Data Selection

To select a specific variable from a file:

cdo -selname,temperature input.nc temperature.nc

Example 3: Time Period Selection

To select a specific time period:

cdo -select,date=2020-01-01,2020-12-31 input.nc output.nc

For additional usage instructions and configuration details, refer to the CDO documentation.