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

Home » Public Forums » archive » Re: Strange array division problem
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: Strange array division problem [message #66293 is a reply to message #66289] Mon, 04 May 2009 16:52 Go to previous messageGo to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
> how about:
>
> a3d /= rebin(xcounts,z,y,x)


oops:

a3d /= transpose(rebin(xcounts, x, y, z), [1,2,0])

depending on how you do things, you may have to switch the 'y' and 'z'
and the '1' and '2'

a=indgen(5)
help, transpose(rebin(a, 5, 10, 10), [2, 1, 0])
;<Expression> INT = Array[10, 10, 5]

now you can divide a3d with a because they have the same dimensions.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: remove duplicate elements from a multi-dimensional array efficiently in IDL
Next Topic: How to judge a Function's parameters ?

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

Current Time: Fri Oct 10 23:03:26 PDT 2025

Total time taken to generate the page: 0.87714 seconds