<div dir="ltr"><div>yyyymmdd = yyyy*10000 + mm*100 + dd<br><br></div>yyyymmddhh = yyyy*1000000 + mm*10000 + dd*100 + hh<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 12, 2014 at 8:49 AM, Noble, Erik U. (GISS-611.0)[Science Collaborator] <span dir="ltr">&lt;<a href="mailto:erik.noble@nasa.gov" target="_blank">erik.noble@nasa.gov</a>&gt;</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">
<br>
<div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
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><br>
</div>
<div>
<div>a = addfile(&quot;ERAI_GBI_dates_timeseries.nc&quot;,&quot;r&quot;)</div>
<div><br>
</div>
<div>yyyy = a-&gt;yr</div>
<div>mm<span style="white-space:pre-wrap"> </span>= a-&gt;mon</div>
<div>dd<span style="white-space:pre-wrap"> </span>= a-&gt;day</div>
<div>hh<span style="white-space:pre-wrap"> </span>= a-&gt;hr</div>
<div><br>
</div>
<div>; how do I combine these to show yyyymmdd?</div>
<div><br>
</div>
<div>
<div style="word-wrap:break-word">
<div style="font-family:&#39;DejaVu Serif&#39;;text-align:-webkit-auto;word-wrap:break-word">
<div>
<div style="word-wrap:break-word">
<span style="border-collapse:separate;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;border-spacing:0px">
<div style="word-wrap:break-word">
Sincerely,</div>
<div style="word-wrap:break-word">
- Erik - </div>
<div><br>
</div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<br>
<br>
</div>
</div>
</div>
<br>
</div>

<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>