Project

General

Profile

tee and merge

Added by Estanislao Gavilan almost 2 years ago

Hi Community,

I am trying to add up two variable from the input file, and then merge it with the remaining variables in an output. However, I get the error
cdo copy,merge,mergegrid (abort): Input streams have diffrent number of variables per timestep!

cdo -merge input.nc -tee -expr,tp="var63+var62" -selname,var63,var62 input.nc inter.nc test.nc

Kind regards,

Estanislao


Replies (2)

RE: tee and merge - Added by Karin Meier-Fleischer almost 2 years ago

The only input file is input.nc and you want to calculate tp and merge it to test.nc, right?

cdo -merge input.nc -expr,'tp=(var63+var62)' -selname,var63,var62 input.nc test.nc

RE: tee and merge - Added by Estanislao Gavilan almost 2 years ago

Thanks so much Karin. Actually, I tried that, but it did not work. It seems that my cygwing cdo version was the one to blame.

    (1-2/2)