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

Home » Public Forums » archive » interpol
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: INTERPOL [message #26944 is a reply to message #12402] Wed, 03 October 2001 18:10 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Hi Roland,

Can you fill us in a little on what this procedure should do, like
with an example of what you did, what was the result, and what you
were expecting?

Craig


"Roland Bammer, Ph.D." <roland@s-word.stanford.edu> writes:
> Hi all,
>
> I have encountered some problems (some data fluctuations at the edges)
> with the INTERPOL-Function:
> when warp_x(0) > 0 or warp(ydim-1) < ydim-1 in the code below.
> Moreover, it seems that the overall signal values are shifted towards
> higher values. Restricting the values of regrid to CEIL(warp_x(0))<=
> regrid <= FLOOR(warp(ydim-1)) (i.e. no extrapolation) did not help at all.
>
> Any suggestions?
>
> PRO regridding, in_vec, new_vec, ydim, mag, shift_y
> x0 = ydim/2.0 - 0.5
> regrid = FINDGEN(ydim)
> x1 = x0 + (regrid-x0)*mag
> warp_x = x1 + shift_y
> new_vec = INTERPOL(in_vec,warp_x,regrid,/SPLINE)
> END;
>
> Roland.
>

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: CASE statement
Next Topic: VARRAY for SGI IRIX64

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

Current Time: Wed Dec 03 17:21:58 PST 2025

Total time taken to generate the page: 0.06681 seconds