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

Home » Public Forums » archive » Re: Aggregating an array
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
Re: Aggregating an array [message #42327] Tue, 01 February 2005 07:29
Jerome Colin is currently offline  Jerome Colin
Messages: 8
Registered: February 2005
Junior Member
edward.s.meinel@aero.org wrote:
> Jerome Colin wrote:
>
>> I thought I could use vectors to define subscripts to use the mean()
>> function :
>>
>> res = mean(data(x:x+i,y:y+i))
>> where x is a one-dimention array
>>
>> but subscritps must be scalars.
>
> How about:
>
> result = SMOOTH(data, i, /EDGE_TRUNCATE)
>
> Ed
>
Thank you very much, Ed !
Re: Aggregating an array [message #42329 is a reply to message #42327] Tue, 01 February 2005 07:12 Go to previous message
edward.s.meinel@aero. is currently offline  edward.s.meinel@aero.
Messages: 52
Registered: February 2005
Member
Jerome Colin wrote:
> I thought I could use vectors to define subscripts to use the mean()
> function :
>
> res = mean(data(x:x+i,y:y+i))
> where x is a one-dimention array
>
> but subscritps must be scalars.
How about:

result = SMOOTH(data, i, /EDGE_TRUNCATE)

Ed
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Plot Title
Next Topic: Re: _extra and call_method

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

Current Time: Fri Oct 10 19:20:46 PDT 2025

Total time taken to generate the page: 1.60003 seconds