<div dir="ltr">Hi Lyndz,<div>No, a function does not exist, at least one is not in contributed.ncl. You can always create one and share it with the community. </div><div><br></div><div>If your data has 4x values for 365 days for each year from 1979-2017 then the calculation is relatively straight forward. If you have leap years, duplicate or missing days, then the function would potentially be tougher as the time coordinate variable would need to be checked. In the simpler former case, something like this would calculate the 6-hourly means:</div><div><br></div><div>; Untested! Check that the following works as you would expect it.</div><div>syear = 1979</div><div>eyear = 2017</div><div>nyr = eyear-syear+1   </div><div>ntimes_oneyr = 365*4</div><div>climo = arr(:ntimes_oneyr-1,:,:)   ; arr = data array running from 1979010100->2017123118</div><div>climo = climo@_FillValue  ; climo = array containing the climatology</div><div>do gg = 0,ntimes_oneyr-1   ; calculate the climatology</div><div>     climo(gg,:,:) = (/ dim_avg_n(arr(gg::ntimes_oneyr,:,:),0) /)</div><div>end do</div><div><br></div><div>do gg = 0,dimsizes(arr&time),ntimes_oneyr   ; remove the climatology from every year</div><div>     arr(gg:gg+ntimes_oneyr-1,:,:) = (/ arr(gg:gg+ntimes_oneyr-1,:,:) - climo /)</div><div>end do</div><div><br></div><div>Hope that helps!</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 6:16 AM Lyndz <<a href="mailto:olagueralyndonmark429@gmail.com">olagueralyndonmark429@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" class="gmail-m_8301063160343669143gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear NCL-experts,</div><div><br></div><div>I have a 6-hourly data set of <i>u-</i>wind from 1979-2017.</div><div><br></div><div>I'm wondering if there is an undocumented function in NCL for calculating 6-hourly anomalies similar to calcDayAnomTLL:</div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/calcDayAnomTLL.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Contributed/calcDayAnomTLL.shtml</a></div><div><br></div><div>Will this function work for 6-hourly data sets?</div><div>I'll appreciate any suggestions on how to do this efficiently using NCL.</div><div><br></div><div>Sincerely,</div><div><br></div><div>Lyndz</div></div></div></div></div></div></div></div></div></div></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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>