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

Home » Public Forums » archive » Re: interpolation of data
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: interpolation of data [message #75670] Wed, 06 April 2011 05:58
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
abc writes:

> I have used the function named INTERPOL and INTERPOLATE but it is
> showing me the following error.
>
> "Result = INTERPOL(flux of 2nd data set,wavelength of 2nd data
> set,wavelength of first data set ,/spline)"
>
> error = X must have the same number of elements as V, and the values
>
> i don't know how i can make the wavelength of 2nd data = wavelength of
> first data set

I think it is likely you just made a (typing?) mistake
when you extracted your data for "flux of 2nd data set"
and "wavelength of 2nd data set". Your pseudo code
looks correct to me.

But, of course, it is easy enough to test those two values
to be SURE they are the same length. I presume they are just
the two columns of your data set.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Previous Topic: interpolation of data
Next Topic: help & help,/structure

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

Current Time: Sun Oct 12 16:30:48 PDT 2025

Total time taken to generate the page: 0.00243 seconds