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

Home » Public Forums » archive » Re: REPLICATE with arrays
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: REPLICATE with arrays [message #18894 is a reply to message #18884] Fri, 11 February 2000 00:00 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
David Fanning <davidf@dfanning.com> wrote in message
news:MPG.130e00a4f5f14484989a29@news.frii.com...
> William Thompson (thompson@orpheus.nascom.nasa.gov) writes:
>
>> Stein Vidar Haugan once proposed the following strategy which appears to
be
>> highly efficient:
>>
>> x2 = rebin( reform(x,3,3,1), 3,3,2)
>
> And Liam Gumley (Liam.Gumley@ssec.wisc.edu) writes:
>
>> IDL> arr = rebin(reform(arr, 3, 3, 1), 3, 3, 2, /sample)
>
> I don't think the IDL newsgroup is the proper place to
> practice the occult sciences. I wish you guys would cut
> it out. :-(

I'll admit that two reshape operations in one line is a bad idea. But if
it's re-written as

arr = reform(arr, 3, 3, 1) ; add an extra dimension
arr = rebin(arr, 3, 3, 2, /sample) ; expand along the extra dimension

then I think it's about as clear as you can get (in the IDL world anyway).

Cheers,
Liam.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 5.3 on NT newbie annoyances
Next Topic: Re: Writing formatted text files

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

Current Time: Sat Oct 11 12:36:58 PDT 2025

Total time taken to generate the page: 0.95553 seconds