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

Home » Public Forums » archive » Re: Interpolate between two curves
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: Interpolate between two curves [message #75602 is a reply to message #75601] Sat, 26 March 2011 06:49 Go to previous messageGo to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Mar 25, 9:55 pm, Gray <grayliketheco...@gmail.com> wrote:
> On Mar 25, 9:27 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
>
>> Why would you need to loop with interpol?
>
>> -Jeremy.
>
> Because it can only handle 1-d data.  I think I figured out my answer,
> though.

To elaborate: since the z-values are linear in y, then the z value
for any x,y pair should be:
z = 5 * [y-y_0(x)] / y_5(x)
So I just calculate my y_0 and y_5 values for all my x's, and then my
z's fall out.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Interpolate between two curves
Next Topic: Books Arriving, Shipping Today!

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

Current Time: Thu Oct 09 22:13:21 PDT 2025

Total time taken to generate the page: 0.56412 seconds