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

Home » Public Forums » archive » Re: Averaging an array of 3000 lines
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: Averaging an array of 3000 lines [message #40886] Mon, 13 September 2004 00:30
agilo is currently offline  agilo
Messages: 2
Registered: September 2004
Junior Member
Thank you Dr. Mannstein,

The function "rebin" worked perfect.

Agilo
Re: Averaging an array of 3000 lines [message #40921 is a reply to message #40886] Wed, 08 September 2004 10:23 Go to previous message
mannstein is currently offline  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/
------------------------------------------------------------ ----
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 6.1 (Windows) Help file problem
Next Topic: Legend in D Fanning's MPI_Plot

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

Current Time: Wed Oct 08 18:13:56 PDT 2025

Total time taken to generate the page: 0.00455 seconds