Project

General

Profile

Remove trend from a data having non-linear trend

Added by S BR almost 7 years ago

Hi CDO users,
How can we remove trend from a time series having non-linear trend. If the trend is linear, we can use 'detrend' function but what should we do if the trend is non-linear.

Thanks
SB


Replies (8)

RE: Remove trend from a data having non-linear trend - Added by Ralf Mueller almost 7 years ago

Hi!

you could make use of the expr operator describes in the Operator News Forum:

On the other hand, you could create your trend as an extra data file and just substract it. It all depends on the model behind the trend ;-)

hth
ralf

RE: Remove trend from a data having non-linear trend - Added by S BR almost 7 years ago

Hi Ralf,
Thanks for your reply. This kind of work (non linear trend) is totally new to me. Is there an example available to use 'expr' operator especially to remove the trend. I could see some other example in the web link given by you.

Also, how can we create our own trend as an extra data file. Do we need to use 'trend' operator for this purpose.

Thanks.
SB

RE: Remove trend from a data having non-linear trend - Added by Ralf Mueller almost 7 years ago

SBR Climate wrote:

Also, how can we create our own trend as an extra data file. Do we need to use 'trend' operator for this purpose.

No, you just create the trend data artificially, by any model you want and then use the sub operator to remove it from the original data. trend is a diagnostics for estimation linear regression parameters.

RE: Remove trend from a data having non-linear trend - Added by S BR almost 7 years ago

Thanks for your reply and explanation. Still not sure how to create the trend data artificially. I am having a NetCDF file and thought that it can be done using CDO. Is there any model available in CDO to create the trend data artificially?

RE: Remove trend from a data having non-linear trend - Added by Ralf Mueller almost 7 years ago

But you suggested a non-linear trend - what did you have in mind?

RE: Remove trend from a data having non-linear trend - Added by S BR almost 7 years ago

Yes, I have annual mean data for 800 years and I have prepared an area averaged time series to see the trend. I could see that the trend in the time series is non-linear. There are long term ups and down in the time series and I realised that detrend (linear fit) may not be suitable. Some documents suggest 'exponential fit' to deal with such data for which I am not aware. Thanks for following up my query.

RE: Remove trend from a data having non-linear trend - Added by Ralf Mueller almost 7 years ago

IMO you have to change the tool for modelling your data (or its trend). numpy/scipy or the GSL might be good. Esp in the python environment there should be plenty of tools for that.

hth
ralf

RE: Remove trend from a data having non-linear trend - Added by S BR almost 7 years ago

Thanks for suggesting the tool to change the data. Regards, SB.

    (1-8/8)