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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Interpolate between two curves [message #75601] Sun, 27 March 2011 08:16
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Mar 26, 9:49 am, Gray <grayliketheco...@gmail.com> wrote:
> 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.

And of course (after a geometry refresher) it's actually:
z = 5 * [y - y_0(x)] / [y_5(x) - y_0(x)]
Re: Interpolate between two curves [message #75602 is a reply to message #75601] Sat, 26 March 2011 06:49 Go 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.
Re: Interpolate between two curves [message #75603 is a reply to message #75602] Fri, 25 March 2011 18:55 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
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.
Re: Interpolate between two curves [message #75604 is a reply to message #75603] Fri, 25 March 2011 18:27 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
Why would you need to loop with interpol?

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Interpolate between two curves
Next Topic: Books Arriving, Shipping Today!

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

Current Time: Wed Oct 08 13:53:34 PDT 2025

Total time taken to generate the page: 0.00539 seconds