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 #86234] Sat, 19 October 2013 20:20 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 #86240 is a reply to message #86234] Sun, 20 October 2013 14:29 Go to previous messageGo to next message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On Saturday, October 19, 2013 11:20:03 PM UTC-4, 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! Very thanks!
>
> dave
>
> 10/20, 2013

I guess this depends on what you want the function to do?
Re: How to write a function that can be apply to arbitrary dimension of multiple array! [message #86241 is a reply to message #86234] Sun, 20 October 2013 17:13 Go to previous messageGo to next message
SonicKenking is currently offline  SonicKenking
Messages: 51
Registered: October 2010
Member
On Sunday, October 20, 2013 2:20:03 PM UTC+11, 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! Very thanks!
>
> dave
>
> 10/20, 2013

You can have a look at Markwardt's CMAPPLY (Apply generic function to array)
http://www.physics.wisc.edu/~craigm/idl/down/cmapply.pro


I also have done something similar but with a different approach. But I never had time (or just too lazy) to clean up the code to a state that it can be published on its own ...
Re: How to write a function that can be apply to arbitrary dimension of multiple array! [message #86248 is a reply to message #86234] Mon, 21 October 2013 08:26 Go to previous message
Dave[4] is currently offline  Dave[4]
Messages: 38
Registered: December 2007
Member
在 2013年10月20日星期日UTC+8上午11时20分03秒,Dave 道:
> 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

Hi, Carsten:
Your method using "tranpose" is what I am doing now.
And if I want to extrat elements, just use like
array[1,*,*,*,*,*,*,*], which can apply to arbitrary
dimension array. Very thanks!
Dave
2013/10/21
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to write a function that can be apply to arbitrary dimension of multiple array!
Next Topic: object argument passing behaviour changed in v8.2.2?

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

Current Time: Wed Oct 08 13:36:23 PDT 2025

Total time taken to generate the page: 0.00475 seconds