Re: timeUnits

From: Kyle Griffin <ksgriffin2_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 16 2013 - 09:18:11 MDT

If you just use the 'ind' function, the units won't matter as long as the
dates match up between your two datasets perfectly - start at the same
time, end at the same time, and have the same time step.

If you want to ensure that the units are the same and allow yourself to
possibly use coordinate subscripts, then look into the function cd_convert:

http://www.ncl.ucar.edu/Document/Functions/Contributed/cd_convert.shtml

This will allow you to change all of the times from one of the variables
into the same units as the other variable (or change them both into any
time units you would like!).

Hope that helps,

Kyle

----------------------------------------
Kyle S. Griffin
Department of Atmospheric and Oceanic Sciences
University of Wisconsin - Madison
Room 1421
1225 W Dayton St, Madison, WI 53706
Email: ksgriffin2@wisc.edu

On Tue, Jul 16, 2013 at 4:53 AM, Ahmad Farsyud <a.farsyud@gmail.com> wrote:

> Dear NCL,
>
> I have a question regarding time units.
> I'd like to create a composite using two different daily datasets but
> having different time units.
>
> X: hours since *1900*-01-01 00:00:00
> Y: hours since *1958*-01-01 00:00:00
>
> is it a matter if I make a composite analysis using "ind" function
> but the timeunits are different? or do I have to set them to be equal
> first before compositing procedure? any suggestion?
>
> Thank you,
> AF
>
>
> _______________________________________________
> 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 Tue Jul 16 09:18:45 2013

This archive was generated by hypermail 2.1.8 : Tue Jul 16 2013 - 13:21:17 MDT