[ncl-talk] Problem using cd_calendar

Mary Haley haley at ucar.edu
Mon Jun 6 12:51:17 MDT 2016


Hi,

I've been looking into this, and I do see what the issue is, but I'm not
sure why the code is written the way it is.

I will try to get back to you with some more information.  I think the code
is simply treating hour 0 and 1 as the same thing.

I've filed a bug report, NCL-2449, for your reference.


--Mary


On Thu, Jun 2, 2016 at 7:37 PM, "이소진" <noitul5 at gist.ac.kr> wrote:

> Dear NCL users,
>
>
> I got an error using cd_calendar in option 4 (YYYY.fraction_of_year).
>
>
> Please see an example below.
>
>
> TEST = cd_inv_calendar((/2012, 2012/), (/3, 3/), (/1, 1/),\
>
>    (/0, 1/), (/30, 30/), (/0, 0/), "days since 2011-12-31", 0)
>
> print(cd_calendar(TEST, 4))
>
>
> Variable: unnamed (return)
>
> Type: double
>
> Total Size: 16 bytes
>
>             2 values
>
> Number of Dimensions: 1
>
> Dimensions and sizes: [2]
>
> Coordinates:
>
> Number Of Attributes: 1
>
>   calendar : standard
>
> (0) 2012.163989450516
>
> (1) 2012.163989450516
>
> TEST2 = cd_inv_calendar((/2012, 2012, 2012/), (/3, 3, 3/), (/1, 1, 1/),\
>
>    (/0, 1, 2/), (/30, 30, 30/), (/0, 0, 0/), "days since 2011-12-31", 0)
>
> print(cd_calendar(TEST2, 4))
>
>
> Variable: unnamed (return)
>
> Type: double
>
> Total Size: 24 bytes
>
>             3 values
>
> Number of Dimensions: 1
>
> Dimensions and sizes: [3]
>
> Coordinates:
>
> Number Of Attributes: 1
>
>   calendar : standard
>
> (0) 2012.163989450516
>
> (1) 2012.163989450516
>
> (2) 2012.164103293868
>
> How to solve this issue?
>
>
> Best regards
>
>
>
>
>
>
> _______________________________________________
> 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/20160606/4f95f923/attachment.html 


More information about the ncl-talk mailing list