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
generate kinematic data using IDL [message #91754] Thu, 20 August 2015 12:21 Go to previous message
g.nacarts is currently offline  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?
[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:43:05 PDT 2025

Total time taken to generate the page: 0.00437 seconds