<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">&lt;<a href="mailto:appopson4@gmail.com" target="_blank">appopson4@gmail.com</a>&gt;</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&#39;s Kyle and Denis<br>
<br>
I already checked  in the list of functions given.<br>
<br>
&#39;day_of_year&#39; is converting calendar to DOY. I&#39;m right?<br>
<br>
But, I&#39;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 &lt;<a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a>&gt;:<br>
<div class=""><div class="h5">&gt; This is easy to find on the NCL website.<br>
&gt;<br>
&gt; Under the &#39;Functions&#39; header on the main page, look at &#39;category listing&#39;:<br>
&gt; <a href="http://www.ncl.ucar.edu/Document/Functions/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Document/Functions/</a> and choose &#39;Date&#39;.<br>
&gt; Here, you should be able to find multiple functions that will do what you<br>
&gt; describe.<br>
&gt;<br>
&gt;<br>
&gt; Kyle<br>
&gt;<br>
&gt; ----------------------------------------<br>
&gt; Kyle S. Griffin<br>
&gt; Department of Atmospheric and Oceanic Sciences<br>
&gt; University of Wisconsin - Madison<br>
&gt; Room 1421<br>
&gt; 1225 W Dayton St, Madison, WI 53706<br>
&gt; Email: <a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a><br>
&gt;<br>
&gt; On Tue, Jun 23, 2015 at 11:33 AM, Appo derbetini &lt;<a href="mailto:appopson4@gmail.com">appopson4@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;&gt; Dear NCL users,<br>
&gt;&gt;<br>
&gt;&gt; There is a function can be used to convert day (order of the day in<br>
&gt;&gt; the year) to time ?<br>
&gt;&gt;<br>
&gt;&gt; For example<br>
&gt;&gt;<br>
&gt;&gt; 15 -&gt; 15 January<br>
&gt;&gt; 32-&gt; 02 February<br>
&gt;&gt; ....<br>
&gt;&gt;<br>
&gt;&gt; 364-&gt; 30 December<br>
&gt;&gt; 365-&gt; 31 December<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; ncl-talk mailing list<br>
&gt;&gt; <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
&gt;&gt; List instructions, subscriber options, unsubscribe:<br>
&gt;&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;&gt;<br>
&gt;<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>