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

Home » Public Forums » archive » Re: How to rebin complex array?
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: How to rebin complex array? [message #39022 is a reply to message #39021] Tue, 13 April 2004 17:10 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Yunxiang Zhang wrote:
>
> I wanna do the following thing as fast as possible.
>
> ;creat a complex array
> a=complexarr(na)
> ;replicate the array k times
> b=rebin(a,na,k)
>
> But rebin won't accept complex array. :( What should I do?

Extract the real & imaginary parts, rebin each one & recombine them?

> Another similiar question is what is the best solution to replicate a 2d
> image eg dist(512,512) k times to get a k-frame "still movie" as a 3d array
> movie(512,512,k) without using any loops?

You can use REBIN in this case.

You might want to look at JD's dimension juggling tutorial, on David
Fanning's site:

http://www.dfanning.com/tips/rebin_magic.html


--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: reading pixels from images from automated XYpositions
Next Topic: Re: Read & write data files b/w IDL & Fortran 90

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

Current Time: Sun Oct 12 14:18:10 PDT 2025

Total time taken to generate the page: 1.91798 seconds