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

Home » Public Forums » archive » Re: zonal means
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: zonal means [message #11080] Mon, 16 March 1998 00:00 Go to previous message
Dan Bergmann is currently offline  Dan Bergmann
Messages: 2
Registered: February 1998
Junior Member
Martin Schultz wrote:
>
> Hi everyone,
>
> this is part question, part answer - I just want to make sure there
> is nothing wrong with this:
>
> Q: How do you compute zonal means from a 3D data cube ?
> (example: A(72,46,14) is a data array with longitude, latitude, altitude
> as dimensions, and I want to compute the averages over longitude for
> each latitude and altitude)
>

bunch of complicated solutions deleted .....


Why not try

b = total(a,1)/72.
--
************************************************************ ***
** Dan Bergmann dbergmann@llnl.gov **
** Atmospheric Science Division fax (510) 423-4908 **
** Lawrence Livermore National Lab human (510) 423-6765 **
************************************************************ ***
[Message index]
 
Read Message
Read Message
Previous Topic: Re: ASSOC and structures don't mix
Next Topic: Re: How to upgrade IDL, Poor support

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

Current Time: Sat Oct 11 21:39:35 PDT 2025

Total time taken to generate the page: 1.51720 seconds