Re: Aggregating an array [message #42327] |
Tue, 01 February 2005 07:29 |
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  |
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
|
|
|