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

Home » Public Forums » archive » Assigning the values of a matrix to a larger matrix
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: Assigning the values of a matrix to a larger matrix [message #88527 is a reply to message #88525] Wed, 07 May 2014 10:51 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Wed, 7 May 2014 09:35:45 -0700 (PDT), Fabrice Lambert wrote:

> Is there a way to avoid the for-loops in that case?

Yes again. REBIN has a partner. It's name is REFORM. REFORM is able to
add extra dimensions within an array. Example
a=indgen(3,2)
a=reform(a,3,1,2,/overwrite)
After this REBIN can be used to increase the new dimension.

For more information you may want to read
http://www.idlcoyote.com/tips/rebin_magic.html.

Cheers, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: ENVI_GLT_DOIT and ENVI_GEOREF_FROM_GLT_DOIT
Next Topic: GDL weirdness (bug?) with modulo command

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

Current Time: Wed Jul 15 09:52:35 PDT 2026

Total time taken to generate the page: 0.80130 seconds