Re: using "ut_calendar" for "months since"

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 21 2009 - 20:05:22 MDT

The caveat is there to indicate that you can not use this function
and get the 'expected' results.

Please see the unidata support help. The following is a typical response.

http://www.unidata.ucar.edu/support/help/MailArchives/udunits/msg00275.html

Good luck

flyyks wrote:
> hello everyone,
>
> when using function ut_calendar, there is a problem mentioned on the web
> page, as follow:
>
> ================================
>
> Caveats of Udunits <http://www.unidata.ucar.edu/software/udunits/>:
>
> * Year 0 is treated as year 1, because year 0 does not exist in the
> real world calendar.
>
> * The length of a month is fixed at 1/12 of a tropical year or
> 2629743.831225 seconds. This means if you have a units of
> something like "months since 1870-1-1", then at time = 0 you will
> get:
>
> year = 1870
> month = 1
> day = 1
> hour = 0
> second = 0
>
>
> However, at time = 1, you will get:
>
> year = 1870
> month = 1
> day = 31
> hour = 10
> second = 3.83122
>
> ==========================
>
> when data's time unit is "months since xxxx-x-x", how to use this function?
>
> Thank you !
>
>
>
>
> 2009-10-20
> ------------------------------------------------------------------------
> flyyks
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Wed Oct 21 20:05:19 2009

This archive was generated by hypermail 2.1.8 : Fri Oct 23 2009 - 11:36:30 MDT