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

Home » Public Forums » archive » Averaging values in an array
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: Averaging values in an array [message #91503 is a reply to message #91501] Tue, 21 July 2015 09:58 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
It sounds like you want

IDL> topscans_avg = mean(topscans,dimension=2)

On Tuesday, July 21, 2015 at 12:50:10 PM UTC-4, Wayana Dolan wrote:
> So I've got an array called 'topscans' which is [333,9], so I am looking through 9 different scans, and each scan has 333 spectral points. I want to average each spectral point for the 9 scans. For example I want to average the first spectral point for all 9 runs, then the 2nd, then the third etc. So that in the end I have a set of 333 spectral points which represents an average of all 9 scans.
>
> Thanks for your help!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: map projection
Next Topic: Array is empty after for loop

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

Current Time: Wed Oct 08 15:13:38 PDT 2025

Total time taken to generate the page: 0.00363 seconds