<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 11 Nov 2015, at 15:35, Mary Haley &lt;<a href="mailto:haley@ucar.edu" class="">haley@ucar.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Yes, by all means feel free to send it along, and we will add it to the next release.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Nov 11, 2015 at 10:59 AM, Alan Brammer <span dir="ltr" class="">&lt;<a href="mailto:abrammer@albany.edu" target="_blank" class="">abrammer@albany.edu</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><br class=""></div><div class="">Mary,&nbsp;</div><div class=""><br class=""></div><div class="">&nbsp;A while back I adapted cd_string to work in reverse cd_inv_string.&nbsp; Pass it a string and the string format and it converts to a cd time. &nbsp; Would you be interested in including this functionality in future releases? &nbsp;</div><div class=""><br class=""></div><div class="">I use the function quite a bit and it helps save a ton of time and &nbsp;lines parsing out the strings and then converting etc.&nbsp;</div><span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">Alan. &nbsp;&nbsp;</div></font></span><div class=""><div class="h5"><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 11 Nov 2015, at 11:01, Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank" class="">haley@ucar.edu</a>&gt; wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">You need to use cd_inv_calendar:</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/cd_inv_calendar.shtml" target="_blank" class="">http://www.ncl.ucar.edu/Document/Functions/Built-in/cd_inv_calendar.shtml</a></div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">Some of the examples on the above page should help you.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">To get the required year, month, day, hour, minutes, and seconds arrays, you will need to parse the "time" array in the same fashion that you parsed the CSV file.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">For example:</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" class="">&nbsp; month = str_get_field(time,1,"/")</font></div><div class="gmail_default"><font face="monospace, monospace" class="">&nbsp; day &nbsp; = str_get_field(time,2,"/")</font></div><div class="gmail_default"><font face="monospace, monospace" class="">&nbsp; year &nbsp;= str_get_field(time,3,"/ ") &nbsp;; note the use of both '/' and ' ' as delimiters</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif" class="">--Mary</font></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Nov 11, 2015 at 8:25 AM, Amadou Coulibaly <span dir="ltr" class="">&lt;<a href="mailto:mpapin24@gmail.com" target="_blank" class="">mpapin24@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">Dear NCL users,<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">I am trying to use cd_calendar for my dataset to be able to plot daily timeseries. But I have a problem converting my Timstamp, which is in the format <span style="color:rgb(0,0,255)" class="">10/05/2014 06:00:00</span>, mm/dd/yyyy hh:MM:ss. I want to use it in the format <span style="background-color:rgb(255,255,255)" class=""><span style="color:rgb(0,0,255)" class="">time@units = "minuts since 2014-10-05 06:00:00"</span> </span>with <span style="color:rgb(0,0,255)" class="">dates = cd_calendar(Time, 0)<span class=""> as specifying in my script (readcsv.ncl). Please, find attached a sample of my data and script.<br class=""><br class=""><br class=""></span></span></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large"><span style="color:rgb(0,0,255)" class=""><span class="">How to solve this issue?<br class=""><br class=""></span></span></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large"><span style="color:rgb(0,0,255)" class=""><span class="">Best regards</span> </span><span style="background-color:rgb(243,243,243)" class=""><span class=""></span></span><br clear="all" class=""></div><br class="">-- <br class=""><div class=""><div dir="ltr" class=""><b style="font-size:small;font-family:tahoma,sans-serif" class=""><font color="#000066" class="">&nbsp;</font><font color="#000066" class="">COULIBALY &nbsp;&nbsp;</font><font color="#000066" class="">AMADOU &nbsp;&nbsp;</font></b><br class=""><span style="color:rgb(0,0,102);font-family:tahoma,sans-serif;font-size:small" class="">PhD&nbsp; Student &nbsp;on&nbsp; West&nbsp; African&nbsp; Climate&nbsp; System (WACS)</span><br class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">FUTA</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""> -&nbsp;</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">F</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">ederal&nbsp; </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">U</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">niversity&nbsp; of&nbsp; </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">T</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">echnology of&nbsp;</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">kure, Nigeria</font><div class=""><font size="2" color="#000066" face="tahoma, sans-serif" class=""><br class=""></font><div class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><i style="font-weight:bold" class="">Visiting Student - </i></span><i style="font-weight:bold" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><i class=""><font size="1" class=""><span style="font-size:13px" class="">University of Cologne, Germany</span></font></i></span><br class=""></i><i class=""><span style="font-family:arial,helvetica,sans-serif" class="">Institute of Geophysics and Meteorology</span></i><span style="font-family:arial,helvetica,sans-serif" class=""><br class=""></span></span><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><font size="1" class="">Pohligstr. 3 / Office 3.102</font></span></span></div><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><font size="1" class="">D-50969 Köln</font></span></span></div></div></div><div style="color:rgb(80,0,80)" class=""><i style="color:rgb(34,34,34);font-family:&quot;bookman old style&quot;,&quot;new york&quot;,times,serif" class=""><font size="1" class=""><span style="color:rgb(0,0,127)" class=""><span style="font-size:13px" class=""><br class=""></span></span></font></i></div><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class=""><u class="">Project</u>: </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">WASCAL</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class=""> (</span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">W</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">est </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">frican </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">cience </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">ervice </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">entre on </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">limate </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">hange and </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">dapted </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">L</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">and Use)&nbsp;</span><br class=""><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">Phone:<a href="tel:%28%2B234%29%20810%20795%202836" value="+2348107952836" target="_blank" class="">(+234) 810 795 2836</a>&nbsp;</font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000" class="">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class=""><a href="tel:%28%2B223%29%2065%2067%2027%2057" value="+22365672757" target="_blank" class="">(+223) 65 67 27 57</a>&nbsp;</font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000" class="">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class=""><a href="tel:%28%2B226%29%2064%2057%2037%2027" value="+22664573727" target="_blank" class="">(+226) 64 57 37 27</a> </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""><span style="color:rgb(34,34,34)" class=""></span><font color="#ff0000" class="">/</font></font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class=""><a href="tel:%2B49%2015218352574" value="+4915218352574" target="_blank" class="">+49 15218352574</a><br class=""></font><div class=""><div class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""></font><br class=""></div><div style="text-align:left" class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""><font color="#000066" class="">E-mail:&nbsp;</font><a href="mailto:mpapin24@gmail.com" style="color:rgb(0,0,255)" target="_blank" class="">mpapin24@gmail.com</a><span style="color:rgb(34,34,34)" class="">&nbsp;</span><font color="#ff0000" class="">/&nbsp;</font><span style="color:rgb(0,0,255)" class=""><a href="mailto:coulibalya68@yahoo.com" target="_blank" class="">coulibalya68@yahoo.com</a>&nbsp;</span></font></div><div class=""><br class=""></div></div><div class=""><font size="2" face="verdana,sans-serif" class=""><p class=""><font color="#ff9900" class="">"<i class="">The time is always right to do right": <b class="">Nelson Mandela</b></i></font></p><p class=""><i class=""><font color="#ff9900" class="">"Character is like a tree and reputation like a shadow.&nbsp; The shadow is what we think of it; the tree is the real thing" : <b class="">Abraham Lincoln</b></font></i></p><p class=""><i class=""><font color="#ff9900" class="">"Do what you can, with what you have, where you are" <b class="">Theodore Roosevelt</b></font></i></p></font><p class=""><b class=""><font size="2" color="#000066" class=""><i class="">&nbsp;</i></font></b></p><p class=""><b class=""><font size="4" color="#000066" class="">&nbsp;</font></b></p><div class="">&nbsp;</div></div></div></div>
</div>
<br class="">_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>