Re: interpolation of data [message #75670] |
Wed, 06 April 2011 05:58 |
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.")
|
|
|