<div dir="ltr"><div>Hi ,<br></div><div>Thanks for your reply. I need to create a time array with the actual date associated with each forecast time. <br></div><div>fatal:Undefined identifier: (cd_string) is undefined, can't continue error<br>t=cd_string(time, "%H:%M")<br><br></div><div>DZ<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 8, 2017 at 9:32 AM, Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You should really take a look at the starting guide of NCL and to the documentation of the individual functions before posting questions here.<div><br></div><div>I’ve just checked your file and it seems that the time variable has the right attributes. <br><div><br></div><div>Something like this should work (NOT TESTED)<br><div><br></div><div><font face="Menlo" size="1">a=addfile("tmp2m.1995053100.<wbr>time.grb2","r”)</font></div><div><font face="Menlo" size="1">time=a->forecast_time0</font></div><div><span style="font-family:Menlo;font-size:x-small"><br></span></div><div><span style="font-family:Menlo;font-size:x-small">date_title= </span><span style="font-family:Menlo;font-size:x-small">"Forecast for "</span><span style="font-family:Menlo;font-size:x-small">+</span><span style="font-family:Menlo;font-size:x-small">cd_string</span><span style="font-family:Menlo;font-size:x-small">(time, </span><span style="font-family:Menlo;font-size:x-small">"%d %c</span><span style="font-family:Menlo;font-size:x-small">.</span><span style="font-family:Menlo;font-size:x-small"> %Y"</span><span style="font-family:Menlo;font-size:x-small">)+</span><span style="font-family:Menlo;font-size:x-small">" at "</span><span style="font-family:Menlo;font-size:x-small">+</span><span style="font-family:Menlo;font-size:x-small">cd_string</span><span style="font-family:Menlo;font-size:x-small">(time, </span><span style="font-family:Menlo;font-size:x-small">"%H:%M"</span><span style="font-family:Menlo;font-size:x-small">)+" UTC</span><font face="Menlo" size="1">”</font></div><div><span style="font-family:Menlo;font-size:x-small"><br></span></div><div><span style="font-family:Menlo;font-size:x-small">Cheers </span></div><div><div><br><div><blockquote type="cite"><div>Il giorno 08 ott 2017, alle ore 11:40, dale zuri <<a href="mailto:dalezuri@gmail.com" target="_blank">dalezuri@gmail.com</a>> ha scritto:</div><br class="m_5624277842751735818Apple-interchange-newline"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">date = cd_calendar(r, -3)</span></div></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>