<div dir="ltr"><div dir="ltr"><div>Please look carefully at the code I sent.</div><div>The directory and the file name are separate.</div><div><br></div>ncl hazra_time.ncl > out.hazra_test_daily</div><div dir="ltr"><br></div><div>Note the the directory name and the filename are separate.</div><div>If your file name has changed structure *you* must accomodate.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 20, 2018 at 12:40 PM Debasish Hazra <<a href="mailto:debasish.hazra5@gmail.com">debasish.hazra5@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Thanks Dennis. But I am getting warning messages when I run your script :</div><div>warning:toint: A bad value was passed (string); input strings must contain numeric digits, replacing with missing value<br>warning:toint: A bad value was passed (string); input strings must contain numeric digits, replacing with missing value<br>warning:tofloat: A bad value was passed to (string) tofloat, input strings must contain numeric digits, replacing with missing value<br>warning:tofloat: A bad value was passed to (string) tofloat, input strings must contain numeric digits, replacing with missing value</div><div><br></div><div>and finally Error : </div><div>fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function<br>fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4740 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl</div><div>fatal:["Execute.c":8575]:Execute: Error occurred at or near line 30 in file test_daily2.ncl which is :</div><div><br></div><div>yyyymmdd = yyyyddd_to_yyyymmdd(yyyyddd)</div><div><br></div><div>Any help.</div><div>Thanks</div><div>Debasish<br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 20, 2018 at 10:48 AM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)"><div dir="ltr"><div>Attached is a a method to get appropriate times.</div><div><br></div><div>You can write code that finds indices that occur within the desired time range.</div><div><br></div><div>Say:good luck<br></div><div><br></div><div> 1 hour: + /- 0.5 hours</div><div> 3 hour: +/- 1.5 hours</div><div>etc</div><div><br></div><div> ii = ind(...)</div><div> if (.not.ismissing(ii(0))) then</div><div> AOT??? = avg(aot(ii))</div><div> end if<br></div><div><br></div><div>good luck<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 19, 2018 at 3:22 PM Debasish Hazra <<a href="mailto:debasish.hazra5@gmail.com" target="_blank">debasish.hazra5@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)"><div dir="ltr"><div>Hi,</div><div>I am trying to use NCL to read station data observation which spans over a month and at irregular intervals. Idea is to produce observation averages around fixed time intervals in a day (like 3,6,9,12,15,18 and 21z) using 1 hour windows. However, I am getting fill values in result, although valid observations are available at those times. Both input and ncl code is attached. Any help is appreciated.</div><div>Thank you</div><div>Debasish.</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>