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

Home » Public Forums » archive » 3D matrix
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: 3D matrix [message #89802 is a reply to message #89800] Thu, 04 December 2014 03:55 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, December 4, 2014 12:45:26 PM UTC+1, g.na...@gmail.com wrote:
> dimension keyword is not allowed in call to mean.
>
> I tried the b = mean(a[0:9,*,*]) but I end up with a single value which is not what I need.

IDL> a = findgen(100,200,200)
IDL> b = mean(a[0:9,*,*], dimension=1)
IDL> help, b
B FLOAT = Array[200, 200]
IDL> !version
{
"ARCH": "x86_64",
"OS": "Win32",
"OS_FAMILY": "Windows",
"OS_NAME": "MicrosoftWindows",
"RELEASE": "8.4",
"BUILD_DATE": "Sep272014",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}

I guess you don't have the latest version of IDL.
Well, calculating the mean is not that difficult:

b = total(a[0:9,*,*], 1)/10.0

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filling the frame of a NG plot
Next Topic: Write_png problem

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

Current Time: Wed Oct 08 11:41:33 PDT 2025

Total time taken to generate the page: 0.00650 seconds