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

Home » Public Forums » archive » zonal means, selective TOTAL(), etc.
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
zonal means, selective TOTAL(), etc. [message #11246] Wed, 18 March 1998 00:00
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
I have also had the need for totalling over selective dimensions
(sometimes more than one dimension), and also MIN/MAX.

Check out my IDL web page for CMAPPLY(), which can apply quite a
number of operations to selected dimensions of an array. You can do
this to more than one dimension at a time using a *list* of dimensions
(similar to the DIMENSIONS parameter to MAKE_ARRAY or to REFORM).

http://astrog.physics.wisc.edu/~craigm/idl/idl.html

CMAPPLY supports more than just addition; it does:

'+' addition '*' multiplication
'AND' logical AND 'OR' logical OR
'MAX' maximum 'MIN' minimum

Where possible I avoid loops to improve performance, but your mileage
may vary depending on the detailed use. [ For example, for small
arrays, your own loop may be faster ].

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@astrog.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Why not join the Speed Survey!!! Re: time test MacOC
Next Topic: Re: troubles with findfile

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

Current Time: Wed Oct 08 17:03:29 PDT 2025

Total time taken to generate the page: 0.00515 seconds