Project

General

Profile

What's the result of add two .nc files with different time length?

Added by hongyi yan almost 4 years ago

Now I'm using HadCRUT data to calculate global warming rate...
It has two files. One is anomaly data series, with 2042 months data, and a mean referrence data with only 12 months long.
I use cdo add operator to get real temperature data, and it runs successfully.
The two data have different time length, what does the result of output .nc file mean?
A B
1+1
2+2
3+3
4+4
5+5
6+6
7+7
8+8
9+9
10+10
11+11
12+12
13+1
14+2
...
like this? or another way to add two data?


Replies (3)

RE: What's the result of add two .nc files with different time length? - Added by Ralf Mueller almost 4 years ago

hi!

such an operation is not permitted. inputs have to have the same number of timesteps, or the seconds has to have only one.

hth
ralf

RE: What's the result of add two .nc files with different time length? - Added by hongyi yan almost 4 years ago

Thanks!
now I have another question, how can I change the mean referrence data with only 12 months long to 2042 months long, a repeat series?

RE: What's the result of add two .nc files with different time length? - Added by Ralf Mueller almost 4 years ago

you might check the duplicate operator then. it will repeat the timeseries as often as you like.

    (1-3/3)