Project

General

Profile

Append netcd files by

Added by Thiago dos Santos over 10 years ago

Hi all,

First-time poster here. please excuse any mistake.

I have 26 netcdf files, and each of them contains its own variables but there is a common variable 'time_weights' (which is 'x days since xx-xx-xxxx').

I would like to merge all files in only one, keeping the time_weights. Hence, I tried:

cdo merge *.nc new.nc

But the 'new.nc' is written with 26 repetitions of the variable 'time_weights', which is really amusing.

The command cdo mergetime *.nc new.nc didn't work either, because: cdo mergetime (Abort): Input streams have different number of variables per timestep!

Then I ask you guys: is there any way to concatenate variables of several netcdf files BY a specific time variable?

Thanks in advance,
Thiago.


Replies (1)

RE: Append netcd files by - Added by Uwe Schulzweida over 10 years ago

Hi Thiago,

merge would be the correct operator for this task. Unfortunately removing duplicate entries is not implemented yet.

Cheers,
Uwe

    (1-1/1)