<div dir="ltr"><div class="gmail_default"><p style="margin:0px"><font face="verdana, sans-serif">I think monthday was the function you really want. You can then split the return into month and day separately. The below three lines are how I have it written in one of my functions. </font></p><p style="margin:0px"><span style="font-family:verdana,sans-serif"><br></span></p><p style="margin:0px"><span style="font-family:verdana,sans-serif"><br></span></p><p style="margin:0px"><font face="verdana, sans-serif"><br></font></p><p style="margin:0px"><font face="verdana, sans-serif">monday = monthday(year, doy)</font></p>
<p style="margin:0px"><font face="verdana, sans-serif">month = toint(monday)/100</font></p><p style="margin:0px"><font face="verdana, sans-serif">day = toint( toint(monday) - (month*100) )</font></p><div style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"></div><div class="gmail_default" style="font-family:verdana,sans-serif">Alan. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 2:22 PM, Appo derbetini <span dir="ltr"><<a href="mailto:appopson4@gmail.com" target="_blank">appopson4@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Thank's Kyle and Denis<br>
<br>
I already checked in the list of functions given.<br>
<br>
'day_of_year' is converting calendar to DOY. I'm right?<br>
<br>
But, I'm trying to do the reverse: going from the DOY to the date<br>
(Greogorian calendar)<br>
<br>
Regards<br>
<br>
2015-06-23 18:18 UTC+01:00, Kyle Griffin <<a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a>>:<br>
<div class=""><div class="h5">> This is easy to find on the NCL website.<br>
><br>
> Under the 'Functions' header on the main page, look at 'category listing':<br>
> <a href="http://www.ncl.ucar.edu/Document/Functions/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Document/Functions/</a> and choose 'Date'.<br>
> Here, you should be able to find multiple functions that will do what you<br>
> describe.<br>
><br>
><br>
> Kyle<br>
><br>
> ----------------------------------------<br>
> Kyle S. Griffin<br>
> Department of Atmospheric and Oceanic Sciences<br>
> University of Wisconsin - Madison<br>
> Room 1421<br>
> 1225 W Dayton St, Madison, WI 53706<br>
> Email: <a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a><br>
><br>
> On Tue, Jun 23, 2015 at 11:33 AM, Appo derbetini <<a href="mailto:appopson4@gmail.com">appopson4@gmail.com</a>><br>
> wrote:<br>
><br>
>> Dear NCL users,<br>
>><br>
>> There is a function can be used to convert day (order of the day in<br>
>> the year) to time ?<br>
>><br>
>> For example<br>
>><br>
>> 15 -> 15 January<br>
>> 32-> 02 February<br>
>> ....<br>
>><br>
>> 364-> 30 December<br>
>> 365-> 31 December<br>
>><br>
>> Regards<br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>><br>
><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</div></div></blockquote></div><br></div></div>