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

Home » Public Forums » archive » concatenate by columns
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
concatenate by columns [message #72122] Fri, 06 August 2010 15:02
Astro Fest is currently offline  Astro Fest
Messages: 1
Registered: August 2010
Junior Member
Hi all,

Is there a better way to concatenate by columns than converting to
rows, concatenating, and converting back? This is the way I'm doing
it now, which seems really clunky.

For example, say I have:
IDL> a = indgen(2,10) & b = indgen(2,6)
which are placeholders for arrays given by array_indices. I want to
get c as a (2,16) array... and currently I'm doing
IDL> c = transpose([[transpose(a)],[transpose(b)]])

Ick.

--Gray
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: reading large multicolumn data file
Next Topic: Re: concatenate by columns

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

Current Time: Wed Oct 08 11:44:04 PDT 2025

Total time taken to generate the page: 0.20128 seconds