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

Home » Public Forums » archive » polar interpolation
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: polar interpolation [message #33625 is a reply to message #33528] Mon, 13 January 2003 10:39 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Thomas Gutzler" <tgutzler@ee.uwa.edu.au> wrote

> Thomas Gutzler wrote:
>>
>> I should write both functions, compare, and then decide again if I want
>> to use the conversion-method. Just wanted to know _if_ there is another
>> way to do it.
>
> I'm facing the problem now. I can see it really clear and it won't let
> me pass.
> I want an interpolated curve in polar coordinates AND equidistant
> theta-values. Since the original curve isn't a straight line it's really
> complicated to pass the correct x-values to interpol so that
> reconversion of the interpolated curve would have eqidistant
> theta-values (of type integer).
> Can anybody see and solve the problem or even give me a hint?


I might be missing something here (I usually am) but why won't simple linear
interpolation work? If it is difficult to get one of the canned routines to
work, brew your own:

Interpolate between points a and b:

iFactor = (Ti - Ta) / (Tb - Ta)

Ri = Ra + (iFactor * (Rb - Ra))

Where Ti is the Theta value where you are interpolating your radius Ri.


-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: bandpass filter
Next Topic: Re: keyboard problem

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

Current Time: Wed Oct 08 18:57:07 PDT 2025

Total time taken to generate the page: 0.00405 seconds