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

Home » Public Forums » archive » Sinc interpolation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Sinc interpolation [message #35518] Mon, 16 June 2003 06:40 Go to next message
the_cacc is currently offline  the_cacc
Messages: 104
Registered: October 2001
Senior Member
OK, I'm stuck. Can someone show me how to sinc interpolate? My code
does not do it very well... at all.

Thanks.


PRO sinc_interpolate



; Sinc interpolation (1D).



n = 10




; Indices for which we have values.

ix = FINDGEN(n)



; The actual values.

y = findgen(n)




; Want value at this point.

x = 5.2




; Distances.

d = ABS(ix - x)



; Sinc.

s = SIN(d) / d




; Calculate value.

val = TOTAL(s * y)




print,'Sinc',val

print,'True',x







END
sec : U Re: Sinc interpolation [message #35540 is a reply to message #35518] Mon, 23 June 2003 16:16 Go to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
Craig Markwardt wrote:
>
> the_cacc@hotmail.com (trouble) writes:
>> OK, I'm stuck. Can someone show me how to sinc interpolate? My code
>> does not do it very well... at all.
> [ new post ]
>> Coo-ee, anyone there?
>
> Since you appear to be using a pig call, I'm not sure I should
> respond. :-)
>


Craig,

Pig call indeed!

Coo-ee is a time-honoured, traditional Australian bushman's call
for long distance communication.

Didn't you ever watch the 1960's Aussie TV show "Skippy the Bush
Kangaroo?"

Shame on you. Thanks to that show, every Aussie kid knew how to whistle
up
a helpful kangaroo using a gumleaf.


Andrew

------------------------------------------------------------ -----------------
Andrew D. Cool
Electromagnetics & Propagation Group
Intelligence, Surveillance & Reconnaissance Division
Defence Science & Technology Organisation
PO Box 1500, Edinburgh
South Australia 5111

Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ -----------------
Re: Sinc interpolation [message #35543 is a reply to message #35518] Mon, 23 June 2003 08:27 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
the_cacc@hotmail.com (trouble) writes:
> OK, I'm stuck. Can someone show me how to sinc interpolate? My code
> does not do it very well... at all.
[ new post ]
> Coo-ee, anyone there?

Since you appear to be using a pig call, I'm not sure I should
respond. :-)

Have you checked/used other sinc interpolation codes on-line?
Example: Buie library function SINT().

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: Sinc interpolation [message #35544 is a reply to message #35518] Mon, 23 June 2003 07:55 Go to previous message
the_cacc is currently offline  the_cacc
Messages: 104
Registered: October 2001
Senior Member
Coo-ee, anyone there?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLgrPolygon borders
Next Topic: Re: IDLgrPolygon borders

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

Current Time: Wed Oct 08 14:52:12 PDT 2025

Total time taken to generate the page: 0.00608 seconds