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

Home » Public Forums » archive » Conversion of 2D to 1D
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
Conversion of 2D to 1D [message #70222] Sun, 28 March 2010 23:45 Go to next message
Neil is currently offline  Neil
Messages: 3
Registered: March 2009
Junior Member
Hi,

How can we convert a 2D array (image) into 1D in IDL?

Plz reply

Regards
Neil
Re: Conversion of 2D to 1D [message #70312 is a reply to message #70222] Mon, 29 March 2010 13:05 Go to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Mar 30, 2:13 am, chris <rog...@googlemail.com> wrote:
> On 29 Mrz., 09:52, Maxwell Peck <maxjp...@gmail.com> wrote:
>
>> On Mar 29, 5:45 pm, Neil <swapneil.v...@gmail.com> wrote:
>
>>> Hi,
>
>>> How can we convert a 2D array (image) into 1D in IDL?
>
>>> Plz reply
>
>>> Regards
>>> Neil
>
>> imageoned = reform(imagetwod,n_elements(imagetwod))
>
> Or simplier: imageoned=imagetwod[*]
>
> Regards
>
> CR

The only reason I don't do it that way is I've never been completely
sure after reading http://www.dfanning.com/misc_tips/submemory.html
whether that operation generates an index vector.

Max
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: EQ2HOR discrepancy -- longitude interpretation?
Next Topic: Clustering x,y coordinates with IDL?

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

Current Time: Wed Oct 08 09:15:20 PDT 2025

Total time taken to generate the page: 0.00457 seconds