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

Home » Public Forums » archive » Take values from several arrays with nearest neighbour matching
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
Take values from several arrays with nearest neighbour matching [message #92897] Fri, 18 March 2016 06:55 Go to next message
Matt G is currently offline  Matt G
Messages: 4
Registered: February 2016
Junior Member
Hi.

I've got a set of different data, sampled at different time rates. I want to find the value of each at 0.01s intervals, but not all are measured at every 0.01 multiple. Is it possible to do some sort of nearest neighbour approach, where I create a reference time array (0 to 1, 0.01 intervals) and match each of these points to their closest time match in the other data sets, then take the values of data at each point from those?

Thanks
Re: Take values from several arrays with nearest neighbour matching [message #92899 is a reply to message #92897] Fri, 18 March 2016 07:32 Go to previous message
Matt G is currently offline  Matt G
Messages: 4
Registered: February 2016
Junior Member
On Friday, March 18, 2016 at 1:55:25 PM UTC, Matt G wrote:
> Hi.
>
> I've got a set of different data, sampled at different time rates. I want to find the value of each at 0.01s intervals, but not all are measured at every 0.01 multiple. Is it possible to do some sort of nearest neighbour approach, where I create a reference time array (0 to 1, 0.01 intervals) and match each of these points to their closest time match in the other data sets, then take the values of data at each point from those?
>
> Thanks

EDIT: similar to the last part here(http://www.idlcoyote.com/code_tips/locatevar.html) except I want to do it for an array of numbers, not just one. Suspect I'm just struggling with array manipulation/data storage.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: indexing bug?
Next Topic: SHELL+IDL bridge.

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

Current Time: Wed Oct 08 07:16:49 PDT 2025

Total time taken to generate the page: 0.00388 seconds