|
Re: Averaging an array of 3000 lines [message #40921 is a reply to message #40886] |
Wed, 08 September 2004 10:23  |
mannstein
Messages: 5 Registered: August 2004
|
Junior Member |
|
|
agilo wrote:
> Hi,
>
> I have an array of two cloumns (x y) and 3000 lines, and I would like
> to reduce the number of lines to 100 using IDL Ver. 5, can any body help.
>
> Thanks in advance
> Agilo
>
a=randomn(1,2,3000)
b=rebin(a,2,100)
should help, At least says the manual, that rebin makes an average.
Hermann
--
!!!!! Please try to avoid .doc attachments !!!!!
------------------------------------------------------------ ----
Dr. Hermann Mannstein Hermann.Mannstein@dlr.de
DLR-Institut fuer Physik der Atmosphaere
Oberpfaffenhofen, D-82234 Wessling Germany
Fon +49-8153-28-2503, Fax +49-8153-28-1841
http://www.dlr.de/ipa/
------------------------------------------------------------ ----
|
|
|