Joining multiple netCDF4 files with CDO command line tool

Words
99
Reading
1 min
Listen
Play
9y

An usual task in any computational climate changes researcher consists in manipulate (crop, cut, join and extract) info from netCDF4 files from global numerical weather models, the infamous reanalysis.

The CDO operators are a come in handy command line tool to perform almost all basic tasks demanded in a daily bases for these files.

Here, given a directory with multiple .nc files, join all files in a single .nc can easily performed as

cdo mergetime *.nc output.nc

at the end of operation, output.nc will have the content of all files in a single file, which can be manipulated in a more efficient way.

Joining multiple netCDF4 files with CDO command line tool | Ecency