Hi Keith,
It's the documentation that's wrong. It's actually correct in one
spot, where it describes the "time" variable in the "arguments"
section, but not in the "description" section.
I'll fix this right away.
--Mary
On Dec 1, 2011, at 1:24 PM, Keith Lindsay wrote:
> Hi,
>
> The docs for cd_calendar state:
>
> The default is to use the mixed Julian/Gregorian calendar. To change
> the calendar, you can set option@calendar to ...
>
> This is not working for me as I would expect it to.
> Consider the following sequence of ncl commands:
>
> time = 36500.0
> time@units = "days since 0000-01-01 00:00:00"
> option = -2
> option@calendar = "noleap"
> print(cd_calendar(time, option))
>
> The generated output is:
> Variable: unnamed (return)
> Type: integer
> Total Size: 4 bytes
> 1 values
> Number of Dimensions: 1
> Dimensions and sizes: [1]
> Coordinates:
> Number Of Attributes: 1
> calendar : standard
> (0) 991207
>
> It looks like the calendar attribute for the option argument is
> ignored.
>
> If I put the calendar attribute on the time variable, the last two
> lines of the output are
>
> calendar : noleap
> (0) 1000101
>
> which is what I expect. So it seems that the docs and the code don't
> agree.
>
> This is all with version 6.0.0.
>
> Is this a mistake in the docs or the code?
>
> Thanks, Keith
> _______________________________________________
> 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 Thu Dec 1 15:44:05 2011
This archive was generated by hypermail 2.1.8 : Fri Dec 02 2011 - 16:10:18 MST