Project

General

Profile

using cat operator with chaining of commands

Added by Ed Maurer almost 13 years ago

I have been running scripts that perform calculations one month at a time and concatenate them into annual files, using this type of approach (though I script a loop through 12 months for each year):
cdo eca_tn10p -selmon,8 daily.tasmin.1962.nc -selmon,8 TN10Pref.1961-1990.nc 1962_tn10p.nc
cdo cat -eca_tn10p -selmon,9 daily.tasmin.1962.nc -selmon,9 TN10Pref.1961-1990.nc 1962_tn10p.nc

While testing it, it seemed to work fine, though when I concatenate several decades into one output file there are almost always a couple of random months missing. I only just read that I should not be using the cat operator with the chaining of commands. Could that be producing unpredictable behavior in the output?


Replies (1)

RE: using cat operator with chaining of commands - Added by Uwe Schulzweida almost 13 years ago

I checked it with CDO version 1.5.0. Your CDO cat commandline should run without any problems. If not, please send us an example.

    (1-1/1)