Project

General

Profile

swift time axis data

Added by Estanislao Gavilan over 2 years ago

Dear Community,

I am aiming to create perturbations and incldude them to other dataset. However, they do not share the same time axis. For instance datasat A is hourly (00:00, 01:00, 02:00 etc) and the dataset B is 3-h (01:30, 4:30, 7:30 etc..) At first, I tried to add them because I am converting them to 6 hours dataset. However, I get large differences in the solar radiation. I think this is caused by the 1:30 hour swift between datasets. I have been thinking I might linearly interporlate the B dataset to a 30 min

cdo inttime,30min -cat ifile ofile

and then timselmean,6

cdo timselmean,6 ofile ofile2

I think this can work but I do not want to merge the files (my computer cannot handle them). If I do not merge the files cdo does not have information about whats happens before 1,Jan 01:30. So I am not sure if there is a way to swift and interpolate without merging the files. Thanks in advance for your help

Kind regards,

Estanislao


Replies (2)

RE: swift time axis data - Added by Estanislao Gavilan over 2 years ago

Hi,

I think I found the way to do it after scanning a bit the website.

cdo -timselmean,12 -selyear,2015 -inttime,2014-01-01,01:30,30min -cat '3h-file-2014nc 3h-file-2015.nc 3h-file-2016.nc' 6h-file-2015.nc
    (1-2/2)