<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thank you. I appreciate your time. Usually, these date values are float values.&nbsp;</div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Dec 12, 2014, at 11:34 AM, Dennis Shea &lt;<a href="mailto:shea@ucar.edu" class="">shea@ucar.edu</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">yyyymmdd = yyyy*10000 &#43; mm*100 &#43; dd<br class="">
<br class="">
</div>
yyyymmddhh = yyyy*1000000 &#43; mm*10000 &#43; dd*100 &#43; hh<br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Fri, Dec 12, 2014 at 8:49 AM, Noble, Erik U. (GISS-611.0)[Science Collaborator]
<span dir="ltr" class="">&lt;<a href="mailto:erik.noble@nasa.gov" target="_blank" class="">erik.noble@nasa.gov</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=""><br class="">
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
Hi. If I have a file that gives me dates broken up into different parts, how to I combine them to have an array of single dates (e.g. YYYYMMDD)
<div class=""><br class="">
</div>
<div class="">
<div class="">a = addfile(&quot;ERAI_GBI_dates_timeseries.nc&quot;,&quot;r&quot;)</div>
<div class=""><br class="">
</div>
<div class="">yyyy = a-&gt;yr</div>
<div class="">mm<span style="white-space:pre-wrap" class=""> </span>= a-&gt;mon</div>
<div class="">dd<span style="white-space:pre-wrap" class=""> </span>= a-&gt;day</div>
<div class="">hh<span style="white-space:pre-wrap" class=""> </span>= a-&gt;hr</div>
<div class=""><br class="">
</div>
<div class="">; how do I combine these to show yyyymmdd?</div>
<div class=""><br class="">
</div>
<div class="">
<div style="word-wrap:break-word" class="">
<div style="font-family:'DejaVu Serif';text-align:-webkit-auto;word-wrap:break-word" class="">
<div class="">
<div style="word-wrap:break-word" class=""><span style="border-collapse:separate;border-spacing:0px" class="">
<div style="word-wrap:break-word" class=""><span style="border-collapse:separate;border-spacing:0px" class="">
<div style="word-wrap:break-word" class=""><span style="border-collapse:separate;border-spacing:0px" class="">
<div style="word-wrap:break-word" class=""><span style="border-collapse:separate;border-spacing:0px" class="">
<div style="word-wrap:break-word" class=""><span style="border-collapse:separate;border-spacing:0px" class="">
<div style="word-wrap:break-word" class="">Sincerely,</div>
<div style="word-wrap:break-word" class="">- Erik -&nbsp;</div>
<div class=""><br class="">
</div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<br class="">
<br class="">
</div>
</div>
</div>
<br class="">
</div>
<br class="">
_______________________________________________<br class="">
ncl-talk mailing list<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="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>