generate kinematic data using IDL [message #91754] |
Thu, 20 August 2015 12:21  |
g.nacarts
Messages: 148 Registered: November 2013
|
Senior Member |
|
|
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?
|
|
|
|
|
Re: generate kinematic data using IDL [message #91758 is a reply to message #91757] |
Fri, 21 August 2015 07:23  |
Jeremy Bailin
Messages: 618 Registered: April 2008
|
Senior Member |
|
|
On Friday, August 21, 2015 at 3:26:41 AM UTC-5, g.na...@gmail.com wrote:
> Trying to generate periodic motion
That was not more detail. ;-)
Motion of what? With respect to what? In a dataset? Animated on the screen?
-Jeremy.
|
|
|