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 #6870 is a reply to message #6868] Thu, 22 August 1996 00:00 Go to previous messageGo to previous message
Graeme K Harkness is currently offline  Graeme K Harkness
Messages: 3
Registered: August 1996
Junior Member
Uwe Knorr wrote:
>
> Dear reader,
>
> i want to extract a line from a 3D image by doing
> line = image(*,*,z)
> 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.
>
> Thanx for giving me some of your time,
>
> Uwe Knorr.
>

I think I know what you mean. You should use the

REFORM

function to convert the 1x1xz sized array into a 1-d one of size z

Graeme

-----------------------------------------------
| Graeme K Harkness |
| Department of Physics & Applied Physics |
| University of Strathclyde |
| GLASGOW G4 0NG UK |
| Tel: +44-141-552 4400 x3354 |
| Fax: +44-141-552 2891 |
| graeme@phys.strath.ac.uk |
-----------------------------------------------
[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 05:22:53 PDT 2025

Total time taken to generate the page: 1.04153 seconds