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 
Switch to threaded view of this topic Create a new topic Submit Reply
generate kinematic data using IDL [message #91754] Thu, 20 August 2015 12:21 Go to next 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?
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 next 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.
Re: generate kinematic data using IDL [message #91757 is a reply to message #91755] Fri, 21 August 2015 01:26 Go to previous messageGo to next message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Trying to generate periodic motion
Re: generate kinematic data using IDL [message #91758 is a reply to message #91757] Fri, 21 August 2015 07:23 Go to previous message
Jeremy Bailin is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
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 07:17:29 PDT 2025

Total time taken to generate the page: 0.00469 seconds