[ncl-talk] Example corel_2.ncl has a problem.

Dennis Shea shea at ucar.edu
Thu Jul 21 16:30:10 MDT 2016


Thank you. The example has been fixed.

http://www.ncl.ucar.edu/Applications/corel.shtml

Regards
D

On Wed, Jul 20, 2016 at 11:51 AM, Kim, Changhwan <
changhwan.kim at metoffice.gov.uk> wrote:

> Dear Madam/Sir,
>
>
>
> I found some problem from example corel_2.ncl(in Correlation section).
>
> In the code, line 34~35 are
>
>
>
>    ccrtot(0:maxlag-1) = ccr2(0:maxlag-1:-1)
>
>    ccrtot(maxlag:)    = ccr1(0:maxlag-1)
>
>
>
> But if we use this code, data for time lag 0 is duplicated.
>
> I think these code have to be corrected below.
>
>
>
>    ccrtot(0:maxlag-1) = ccr2(1:maxlag:-1)
>
>    ccrtot(maxlag:)    = ccr1(0:maxlag)
>
>
>
> Please check this problem.
>
>
>
> Regards,
>
>
>
> Changhwan Kim.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160721/51016974/attachment.html 


More information about the ncl-talk mailing list