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

Home » Public Forums » archive » getting uniform cadence data
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
getting uniform cadence data [message #93797] Wed, 19 October 2016 01:26 Go to next message
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
hi all,

I have 400 images taken at different time interval 6seconds, 7 seconds, 8seconds and 12 seconds.

But for the analysis, I want 12second cadence image series. Is there a way to get 12 second cadence image series out of this data.

thanks
Re: getting uniform cadence data [message #93798 is a reply to message #93797] Wed, 19 October 2016 02:46 Go to previous message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
On 10/19/2016 10:26 AM, sid wrote:
> I have 400 images taken at different time interval 6seconds, 7
> seconds, 8seconds and 12 seconds.
>
> But for the analysis, I want 12second cadence image series. Is there
> a way to get 12 second cadence image series out of this data.
;data= array of size [400,naxis] containing images
;sec = seconds after first image

; dummy data & sec for test purposes:
data=randomu(seed,[400,45,87])
t=randomu(seed,400)*10
sec=total(t,/cumulative)

secOut=[0.:ceil(sec[399]/12.)*12.:12.]
nso=n_elements(secOut)
naxis=(size(data,/dim))[1:2]
dataOut=fltarr([nso,naxis])
for i=0,naxis[0]-1 do for j=0,naxis[1]-1 do $
dataOut[*,i,j]=reform(INTERPOL(data[*,i,j],sec,secOut),[1,1, nso])

what keywords of INTERPOL to set you need to figure out yourself

Anyone know a way of doing it faster?

Good luck, Markus

http://www.harrisgeospatial.com/docs/INTERPOL.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Speed does matter
Next Topic: Files on external drive not accessible with hdf_open()

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

Current Time: Wed Oct 08 11:24:36 PDT 2025

Total time taken to generate the page: 0.46001 seconds