<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=""><div class="">I sent a function I wrote to do this kind of parsing to Mary yesterday. Had dropped you off the reply though. </div><div>This could replace the multiple lines of string parsing you have with a single function. </div><div>I’ve used this function fairly extensively and haven’t run into any issues recently. </div><div><br class=""></div><div>Save the attached .ncl file somewhere on your system and use the load statement at the top of the script.</div><div>e.g. </div><div><br class=""></div><div>load “./cd_inv_string.ncl”</div><div><br class=""></div><div>time = "10/05/2014 06:00:00"<br class="">time_format = "%N/%D/%Y %H:%M:%S” ;;; same codes as cd_string <br class="">time_format@units = "minutes since 2014-10-05 06:00:00”<br class=""><font color="#5856d6" class=""><br class=""></font><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">date = cd_inv_string(time, time_format)</div></div></div><div><br class=""></div><div>print(cd_calendar(date,0)) ; check that it actually worked properly</div><div><br class=""></div><div><br class=""></div><div>Good luck, </div><div>Alan. </div><div><br class=""></div><div>p.s. I’m not an NCL developer and can not support functions in any official manner. This should work but your luck with it may be different. </div><div><br class=""></div><div><br class=""></div><div></div></body></html>