Re: problem about 2 time series

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 14 2012 - 11:14:47 MDT

There are several approaches that can be used. One follows:

    ntim1 = dimsizes(ts1)
    ntim2 = dimsizes(ts2)
    NTIM = max( (/ntim1,ntim2/) )

    nplt = 2

    TIME = new ( (/nplt,NTIM/), typeof(time1) )
    TS = new ( (/nplt,NTIM/), typeof(ts1) )

    TIME(0,ntim1-1) = time1
    TIME(1,ntim2-1) = time2

    TS(0,ntim1-1) = ts1
    TS(1,ntim2-1) = ts2

    plt = gsn_csm_xy(wks, TIME, TS, resxy)

On 9/14/12 11:03 AM, 祖ه­گو¸… wrote:
> Dear all,
> I try to plot 2 time series, which have nonuniform time resolutions but
> the same time range. For example, the data:
> time series 1: a1, a2, a3, a4, a5
> time 1: 1, 3, 4, 6, 8
> time series 2: b1, b2, b3, b4, b5
> time 2: 1, 2, 5, 7, 8
> If somebody knows how to plot these 2 time series in a figure with
> single x axis, please email me.
> I would appreciate your help.
> Best Regards,
> Ziqing ZU
>
>
>
>
>
> _______________________________________________
> 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 Sep 14 11:14:55 2012

This archive was generated by hypermail 2.1.8 : Fri Sep 21 2012 - 16:22:30 MDT