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

Home » Public Forums » archive » Re: extracting subarray (*,*,index) gives (1,1,index). WHY ???
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: extracting subarray (*,*,index) gives (1,1,index). WHY ??? [message #6887 is a reply to message #6881] Tue, 20 August 1996 00:00 Go to previous messageGo to previous message
a2652099 is currently offline  a2652099
Messages: 10
Registered: August 1996
Junior Member
In article <3219CC9A.53D7@neurologie.uni-duesseldorf.de>
knorr@neurologie.uni-duesseldorf.de (Uwe Knorr) wrote:

> i want to extract a line from a 3D image by doing
> line = image(*,*,z)

A line? Wouldn't that rather be image(a,b,*) ?

> i expect line to be a 1d vector with dimension dim(z)
> or to be more IDLish, i expect the following to hold
> size(line) == (z)
> but instead I get
> size(line) == (1,1,z)
> I hope you know what I mean.

If I do, I think using the REFORM command would help you, eg.
line = REFORM( image(a,b,*), z ),
where z is the 3rd dimension of your array. This converts your (1,1,z)
array into the (z) array.

Alex
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help on CGM Device
Next Topic: I had to try it!

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

Current Time: Sat Oct 11 10:31:54 PDT 2025

Total time taken to generate the page: 0.56051 seconds