[ncl-talk] problem with date extraction (greogorian Calender)

Karin Meier-Fleischer meier-fleischer at dkrz.de
Tue Jul 10 02:01:55 MDT 2018


Hi Geeta,

you missed to attach the script and it would also be good to have the data.

-Karin

Am 06.07.18 um 12:01 schrieb Geeta Geeta:
> Hi all.
> I have monthly Reanalysis data that contains 4 times for each date 
> (say 01.01.2011, 00, 06, 12 and 18). Now I am using
>  Time         = calendar_decode2(Dumy,3)         ; if 3, O/P 20110414, 
> if 2 O/P 2011041400 and so on
> ;                     printVarSummary(Time)
>
> It shows me that there are 124 times but the dates in the proper 
> format like " 2009030100" is shown for only 1st day (4 times). I am 
> attaching my code. Kindly suggest.
>
> Variable: Time
> Type: double
> Total Size: 992 bytes
>             124 values
> Number of Dimensions: 1
> Dimensions and sizes:    [124]
> Coordinates:
> Number Of Attributes: 1
>   calendar :    gregorian
> (0)    2009030100
> (1)    2009030106
> (2)    2009030112
> (3)    2009030118
> (4)    1900010100
> (5)    1900010100
> (6)    1900010100
> (7)    1900010100
> (8)    1900010100
> (9)    1900010100
> (10)    1900010100
> (11)    1900010100
> (12)    1900010100
> (13)    1900010100
> (14)    1900010100
> (15)    1900010100
> (16)    1900010100
>
>
>
>
> (110) 1900010100
> (111)    1900010100
> (112)    1900010100
> (113)    1900010100
> (114)    1900010100
> (115)    1900010100
> (116)    1900010100
> (117)    1900010100
> (118)    1900010100
> (119)    1900010100
> (120)    1900010100
> (121)    1900010100
> (122)    1900010100
> (123)    1900010100
> Geeta.
>
>
> _______________________________________________
> 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/20180710/fea87559/attachment.html>


More information about the ncl-talk mailing list