[gradsusr] Linear trend (Nino 3.4 time series)
Corey Gabriel
cjgabriel7 at gmail.com
Thu Apr 17 13:19:58 EDT 2014
Dear Grads Community:
I am attempting to remove a linear trend from several time series. (Figure
attached). I have tried many things, and I wrote a small block of
similar code that I am using to try to draw the linear trend line.
Any assistance would be greatly appreciated,
Thanks,
Corey
1. set y 1
2. set z 1
3. set t 1 1753
4. define var1 = aave(sst, lon=-5, lon=5, lat=190, lat=240)
5. define var2= ave(var1,t+0,t=1872,12))
6. d tregr(var1, var2, t=1, t=1753) [Result is the coefficient)
7. define coeff = tregr(var1, var2, t=1, t=1753)
8. d coeff * (var1- var2) + var2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140417/3e27de69/attachment.html
More information about the gradsusr
mailing list