Reputation: 53
I'm using a simple nco command on a file with monthly ocean data to calculate annual averages. I perform the same command twice, on two files with identical formatting and output, one contains 1000 years of data, the other has 750 years. I cannot see anything else that is different about the files. The following command works for the first (1000 year file), but not for the second. In the first case it creates annual averages, with 1000 times. This is what I expected.
ncra --mro -O -d time,,,12,12 TEMP_000101-100012.nc TEMP_annual_1000yr_TEST.nc
However, when I try this same command for the shorter record file I get only one entry, exactly in the middle of the time frame (the file goes from year 1000 to 1750, and the resulting file creates output for the year 1375).
To be clear, the second command is:
ncra --mro -O -d time,,,12,12 TEMP_100101-174912.nc TEST.nc
Does anyone have thoughts on why this might be?
Thanks in advance, mira
Upvotes: 0
Views: 1294
Reputation: 6352
Your commands appear to be correct, and that behavior is inexplicable. There is either something strange in your 750 file or you have stumbled upon a bug. Please submit this as an NCO issue as described here.
Upvotes: 1