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

Home » Public Forums » archive » Newbie question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Newbie Question [message #16846 is a reply to message #5968] Mon, 23 August 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dan Fletcher (djfletcher@ucdavis.edu) writes:

> I'm new to IDL and am implementing some signal processing code. I have
> an array corresponding to a set of n time series, each with m points. I
> want to filter each time series so I'm using the following code to
> filter the first time series
>
> Coeff=DIGITAL_FILTER(Flow,Fhigh,50,40)
> FilteredTestDataSub=CONVOL(Data[0,*],Coeff)
>
> When I do this, I get an error that says
>
> CONVOL: Kernel's dimensions are incompatible with operand's.
>
> I think this is because the Data[0,*] gives a 1xm array rather than a
> vector of length m. I can't figure out any way to change that 1xm array
> into a vector without a FOR DO loop. Is there some simple way to solve
> this problem?

data = Reform(data[0,*])

The trailing dimension of 1 will be dropped by IDL and you
will end up with the row vector you are looking for.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: help with data points of contour.
Next Topic: idl > memory problems

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

Current Time: Sat Oct 11 06:52:58 PDT 2025

Total time taken to generate the page: 2.00244 seconds