comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » 1D array problem for butterworth.pro
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
1D array problem for butterworth.pro [message #92534] Tue, 05 January 2016 23:18 Go to previous message
kagoldberg is currently offline  kagoldberg
Messages: 26
Registered: November 2012
Junior Member
I stumbled across a major problem with calculating 1D butter worth filters in IDL 8.5. (This bug was not in IDL 8.3. I don't know about 8.4.)

When you ask for 1D output, butterworth.pro extracts a 1D vector from the dist(x) function, which is a 2 dimensional, square array. As you might guess, as the array size gets large, IDL has to calculate a 2D dist() result with N^2 points! IDL 8.3 did not do this.

It brought my computer to its knees a few times before I was able to isolate it, and replace the built-in butterworth.pro with my own kludge.

Instead of (dist(x))[*,0], they should have used dist(x,1) and... problem solved.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: scientific image
Next Topic: help using IMAGE.pro and COLORBAR in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:32:42 PDT 2025

Total time taken to generate the page: 0.00427 seconds