Project

General

Profile

Merge Two NetCDF Files into One File

Added by Aaron Perry over 7 years ago

Hi,

I have two NetCDF files that I would like to merge. Each file contains a different variable but have the same number of time steps (10).

File Names: 20161128_sd_tmax.nc & 20161128_tmin.nc

I have tried using the following code to merge them into one file but, the variable names are not retained after the merge:

cdo cat 20161128_sd_tmax.nc 20161128_sd_tmin.nc 20161128_sd_all.nc


Replies (2)

RE: Merge Two NetCDF Files into One File - Added by Ralf Mueller over 7 years ago

how about

cdo merge 20161128_sd_tmax.nc 20161128_sd_tmin.nc 20161128_sd_all.nc

RE: Merge Two NetCDF Files into One File - Added by Aaron Perry over 7 years ago

That worked perfectly, thank you! :)

    (1-2/2)