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

Home » Public Forums » archive » generate kinematic data using IDL
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: generate kinematic data using IDL [message #91755 is a reply to message #91754] Thu, 20 August 2015 12:47 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Thursday, August 20, 2015 at 2:21:14 PM UTC-5, g.na...@gmail.com wrote:
> Hi
>
> I'm aiming to generate sinusoidal or other periodic motion for several degrees of freedom. The image that I have is a 2D image [256,256] and I want to add periodic motion in y direction only.
>
> Im = Array[256,256]
>
> I generated a time vector
> t = dindgen(256)
> Then plugged it into sin:
> amp =3.
> T=2.
> y = amp * sin(2*!pi*t/T) ;y is an 1D aray [256].
>
> for j=0L, NY-1 do begin
> Motion_Im = Im[*,j] + y
> endfor
>
> What I got out of this is the image with some white rows on the top, no motion at all. Are there other functions or toolboxes that might be more useful? Or does anyone suggest something else?

I don't really understand what you're trying to do -- can you explain in more detail?

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: plot function performance
Next Topic: IDL 8.5 Python Bridge

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

Current Time: Wed Oct 08 11:35:19 PDT 2025

Total time taken to generate the page: 0.00444 seconds