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

Home » Public Forums » archive » Re: Regrid / Interpolation Question
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: Regrid / Interpolation Question [message #79672 is a reply to message #79671] Fri, 23 March 2012 11:04 Go to previous messageGo to previous message
Sean[1] is currently offline  Sean[1]
Messages: 11
Registered: July 2005
Junior Member
> Use INTERPOLATE instead of INTERPOL, and compute a 2-D array of
> coordinates to match yin that contains the row index of each point.
>
> Ken Bowman

I can see the general idea for doing this with interpolate --The code should look something like

yinterpolates = REBIN( transpose(lindgen(nj)), n_elements(yout), nj)
yout = interpolate( yin, xinterpolates, yinterpolates)

but I don't quite get how to calculate the x-interpolates. The problem is that the values in vin, while ordered in each row, are not evenly spaced -- Am I missing something simple here?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Coyote Graphics Program: cgPolygon
Next Topic: Time axis labelling (1 major label every 7 days with 6 minor ticks)

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

Current Time: Fri Oct 10 14:00:44 PDT 2025

Total time taken to generate the page: 0.64398 seconds