<div dir="ltr"><div><div><div>Hi ,<br></div>How to add the forecast time to initial time to get the actual date associated with each time step? Could someone help me to fix this? I have to loop this for many files with different forecast time. <br></div><div>I would appreciate any suggestion. <br></div><div><br>Thanks <br>DZ<br>a = addfile(""r")<br> t2 = a->TMP_P0_L103_GGA0(:,:,:)<br><br> t2=t2-273.15 <br> printVarSummary(t2) ;<br><br> r=a->forecast_time0<br>printVarSummary(r) ;print out structure/basic info of the data<br>;print(r)<br>date = cd_calendar(r, -3)<br>print(date)<div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/0B59Ie0G9dH6uNWxBMmpkSEU4Vm8/view?usp=drive_web" target="_blank" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0;border:none"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">tmp2m.1995053100.time.grb2</span></a><img src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png" style="opacity: 0.55; cursor: pointer; float: right; position: relative; top: -1px; display: none;"></div><br><br></div>Thanks,<br></div>DZ<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 8, 2017 at 12:59 AM, dale zuri <span dir="ltr"><<a href="mailto:dalezuri@gmail.com" target="_blank">dalezuri@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 dir="ltr"><div><div><div><div>Hi,<br></div> Could someone help me to read the forecast time in the file? This prints wrong year and date.<br> <br></div>I would appreciate any help to read the actual forecast in theyyyymmddhh format. <br></div>Thanks,<br></div>DZ<br><div><div><div><div><br><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border-width:1px;border-style:solid;border-color:rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/0B59Ie0G9dH6ueklMSmtZdjNLUHc/view?usp=drive_web" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border-width:medium;border-style:none;border-color:currentcolor" target="_blank"><img style="vertical-align:bottom;border-width:medium;border-style:none;border-color:currentcolor" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">tmp2m.2002050100.time.nc</span></a><img src="" style="opacity:0.55;float:right;display:none"></div>a = addfile(""r")<br> t2 = a->TMP_P0_L103_GGA0(:,:,:)<br><br> t2=t2-273.15 <br> printVarSummary(t2) ;<br><br> r=a->forecast_time0<br>printVarSummary(r) ;print out structure/basic info of the data<br>;print(r)<br>date = cd_calendar(r, -3)<br>print(date)<br><br></div></div></div></div></div>
</blockquote></div><br></div>