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

Home » Public Forums » archive » How to write a function that can be apply to arbitrary dimension of multiple array!
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
How to write a function that can be apply to arbitrary dimension of multiple array! [message #86235] Sat, 19 October 2013 20:21 Go to next message
Dave[4] is currently offline  Dave[4]
Messages: 38
Registered: December 2007
Member
Hi, guys:
I want to write a function which can be apply to specified dimension of multiple array, like "mean function which has DIMENSION= parameters.
So, any suggestions! Very thanks!
dave
10/20, 2013
Re: How to write a function that can be apply to arbitrary dimension of multiple array! [message #86237 is a reply to message #86235] Sun, 20 October 2013 07:10 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dave writes:

> I want to write a function which can be apply to specified dimension of multiple array, like "mean function which has DIMENSION= parameters.
> So, any suggestions!

My suggestion is to show us what you have done so far, so we can see
where you are going wrong.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: How to write a function that can be apply to arbitrary dimension of multiple array! [message #86247 is a reply to message #86235] Mon, 21 October 2013 07:10 Go to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
On 20/10/13 05:21, Dave wrote:
> Hi, guys: I want to write a function which can be apply to specified
> dimension of multiple array, like "mean function which has DIMENSION=
> parameters. So, any suggestions!

You ask a very general question, so the answer also is very general. I have on
occasion used TRANSPOSE() with the permutation vector P specified so that the
special dimension was made the first dimension. Then your function can be
written to always do its work on the first dimension, after which you
transpose back.

chl
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to undo 80-column line width maximum in read_ascii?
Next Topic: How to write a function that can be apply to arbitrary dimension of multiple array!

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

Current Time: Wed Oct 08 15:23:27 PDT 2025

Total time taken to generate the page: 0.00506 seconds