# Re: Lag-Correlation

Date: Fri, 10 Jul 2009 15:09:28 -0700

Ibraheem

From what I understand of your problem, you should be able to do this
by subsetting the 5-yr time series array to the year of the data with
which you're correlating, e.g. (using years that I just made up)

yrst = 2000 ; first year of your 5-year time series
yr3d = 2001 ; year of 3d data

st = (yr3d - yrst) * 12
en = st + 11

cor = esccr( time_series(st:en), 3d_array, mxlag)

Hope that helps

Will

Quoting Ibraheem Khan <khan18_at_atmos.uiuc.edu>:

> Hi,
>
> The lagged correlation with function "esccr" is seemingly only
> possible when two time series are equal. But i want to calculate the
> lagged correlation between an indexed time series of 5 years (one-D
> data) and twelve months (3-D data) of a specific year. In this case
> both time dimensions are not equal. Any suggestions about how to
> deal with this case??
>
> Thanks
>
> -Ibraheem
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jul 10 2009 - 16:09:28 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 13 2009 - 20:56:19 MDT