getting uniform cadence data [message #93797] |
Wed, 19 October 2016 01:26  |
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  |
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
|
|
|