<div dir="ltr">Danny,<div><br></div><div>The documentation for this filter says that it is optimized for narrow bandwidths.  The description goes on to mention certain shortcuts in its calculations.  Your settings describe a low pass filter with a very wide pass band, far to one end of the signals in your time series.  This is not what is meant by &quot;narrow bandwidth&quot;.</div><div><br></div><div>This is just speculation, but I think your settings may be breaking key assumptions within this filter&#39;s code implementation.  You may have chosen a filter function that is badly matched to your particular problem.  Perhaps, look at some of the other available NCL functions.  HTH.</div><div><br></div><div>--Dave</div><div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 15, 2015 at 11:51 AM, Daniel Barandiaran <span dir="ltr">&lt;<a href="mailto:dbarandiaran@gmail.com" target="_blank">dbarandiaran@gmail.com</a>&gt;</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>Hi everyone,<br><br></div><div>I was trying out the bw_bandpass_filter function and found some unexpected results. The gist of the problem is that the end of the time series being filtered approaches a smoothed zero, even if the time series is doing something else entirely (see attached figure, consider bold blue line and shaded blue area). I imagine this is due to the internal workings of the filter itself, but regardless of that, does anyone have any ideas on &quot;fixing&quot; this? <br><br>Some details: I have fca set to 1/60., or 5 years, and fcb set arbitrarily large, i.e. 1/100000., so the filter essentially behaves as low pass. I am also making sure to not give the function any missing values.<br><br></div>--<br><div><div><div dir="ltr"><div>Danny Barandiaran<br></div><div>Ph.D. Candidate<br></div><div><div>Department of Plants, Soils, and Climate</div><div>Utah State University</div></div></div></div></div></div></blockquote></div></div></div></div>