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

Home » Public Forums » archive » Re: rebinning data on new time samples without loops?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: rebinning data on new time samples without loops? [message #37270] Fri, 12 December 2003 13:11 Go to previous message
jbattat is currently offline  jbattat
Messages: 8
Registered: November 2003
Junior Member
I don't know why i wrote the replicate command in my original post...
I did not use replicate in my code!
Anyway, I would prefer to bin rather than interpolate, because I would
like to reduce my noise (t1 is much more finely sampled than t2 so
averaging many t1 points rather than interpolating should help)

But for quick and dirty analysis, I will use INTERPOL as a fast fix.
Thanks for the suggestion.

I'm still on the lookout for a clever array solution...

take care,
james


> Hi,
>
> On your code, do you need the replicate line,
> [1,2,3,4] - 3 = [-2,-1,0,1]
> [1,2,3,4] - [3,3,3,3] = [-2,-1,0,1]
>
> anyway..
>
> What's wrong with INTERPOLATE or INTERPOL?
>
> y2=interpol(y1, t1, t2)
>
> TRIANGULATE if the data is two dimensional.
>
> If you really want to use your method, I would suggest making a two
> dimensional grid from y1 (t1, t2), and using some matrix tricks on it.
> Possibly based on the "Vector Comparison" thread a while back
>
> http://groups.google.com/groups?hl=en&lr=&ie=ISO-885 9-1&q=
> vector+comparison+idl&btnG=Google+Search
>
> should be one line obviously.
>
> Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Permanently changing shell
Next Topic: Re: Subscripting multidimensional arrays

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

Current Time: Sat Nov 29 05:53:30 PST 2025

Total time taken to generate the page: 0.96164 seconds