Project

General

Profile

Substract two files with different time dimension

Added by Andreas Stutz over 5 years ago

Hello, so I am a Newbee two cdo.
What I want to do is to substract a "daily climatology (so 366 timesteps) from another temperature-file of a "random" dimension (for example 01.03.1976, 01.03.1977, 03.05.1998 and 19.09.1999). So I want to get the Temperature anomaly of the "random"-file.

How can i achieve this? How can I substract this and letting know cdo, that I want to select the same day and month, so to speak.

Thanks in advance!

Andi


Replies (5)

RE: Substract two files with different time dimension - Added by Ralf Mueller over 5 years ago

hi!

please upload some files, if possible. if the number of timesteps is the same, use cdo -sub ...

hth
ralf

RE: Substract two files with different time dimension - Added by Andreas Stutz over 5 years ago

Hi,
Thanks for your answer (and sorry for the late respond (did not get notified)).
So, i have a file with continous time-series (Temperaturanomalie) from 1961 until 2010, and I have a file with (lets say (because i have several files and ist not really these Dates!) three Dates: 1965-05-01, 1998-04-24, 2009-09-17. (with Temp and Geopotential at 850 and 500hPa Level).
How can I extract a file from the temperatureanomly file that has these three dates?

Thanks for any help!

RE: Substract two files with different time dimension - Added by Ralf Mueller over 5 years ago

use the select operator like

 cdo -select,date=1965-05-01,1998-04-24,2009-09-17 ifile ofile

RE: Substract two files with different time dimension - Added by Ralf Mueller over 5 years ago

cdo -select,date=1965-05-01,1998-04-24,2009-09-17,level=850,500 ifile ofile 
    (1-5/5)