A CF-netCDF to CF-netCDF file converter with aggregation


Convert CF-netCDF files to a single CF-netCDF file.

Variables in the input netCDF files are aggregated into as few multidimensional netCDF variables as possible using the CF aggregation rules based on the CF data model at version 1.5 of the CF conventions.

In particular, differing netCDF variables' units, dimension order and dimension direction are accounted for in the aggregation process.

The conversion is carried out internally using the python cf package, which must be installed.

Man page

cf2cf man page (plain text, html or pdf)


>> man cf2cf

>> cf2cf −o file*.nc

>> cf2cf −f NETCDF4_CLASSIC −i −u −v file[a−z].nc


cf2cf is bundled with, and depends on, the cf-python package (version 0.9.4 or later). The cf-python package itself also has dependencies.

During installation of cf-python, the cf2cf script is automatically placed in a location in the environment's PATH, but its man page (scripts/man1/cf2cf.1) needs to be moved by hand to a location in the environment's MANPATH.


I would be very pleased to hear about bugs or suggested improvements. All of the following are currently being investigated:


David Hassell
National Centre for Atmospheric Science (NCAS)
Department of Meteorology, University of Reading,
Earley Gate, PO Box 243,
Reading RG6 6BB,