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

Home » Public Forums » archive » Re: IImage Command Line
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: IImage Command Line [message #50834 is a reply to message #50833] Mon, 16 October 2006 11:01 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
StevenM wrote:
> I have a 3D array of data. I am trying to display this using iimage.
> When I use the command
> iimage, filename(*,*,30)
> I get the slice I want through the volume. But if I try to get the
> slice at another orientation i.e
> iimage, filename(30,*,*)
> I get an error message that says the first arguement is invalid.

Try:

iimage, reform(filename[30, *, *])

It's one of those quirks of IDL that

filename[*, *, 30]

is a m by n array, but

filename[30, *, *]

is a 1 by n by k array. iImage does not like a 1 by m by n array. The
REFORM above removes the extra dimension of size 1 (and can do other
dimension juggling tasks with more arguments).

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Previous Topic: IImage Command Line
Next Topic: Re: Altered device coordinates after first call

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

Current Time: Fri Oct 24 03:51:50 PDT 2025

Total time taken to generate the page: 0.40165 seconds