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
INTERPOL [message #26949] Wed, 03 October 2001 15:24
Roland Bammer, Ph.D. is currently offline  Roland Bammer, Ph.D.
Messages: 2
Registered: October 2001
Junior Member
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.
[Message index]
 
Read Message
Previous Topic: Re: Using IDL with Java
Next Topic: TOTAL(): was Declaration of variables in IDL

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

Current Time: Wed Oct 08 13:10:54 PDT 2025

Total time taken to generate the page: 0.00164 seconds