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

Home » Public Forums » archive » need the dimensions of an array
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: need the dimensions of an array [message #38796 is a reply to message #38748] Mon, 29 March 2004 09:32 Go to previous messageGo to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
<wmc@bas.ac.uk> wrote in message news:4067deaf@news.nwl.ac.uk...
> Thomas Nehls <thomas.nehls@tu-berlin.de> wrote:
>> Thank you very much for your help, unfortunately and because of the
Time
>> shifting between you and me, I needed to find a solution somehow and
now
>> this works:
>
>> col = LONG(N_ELEMENTS(img[0,*,0]))
>> row = LONG(N_ELEMENTS(img[0,0,*]))
>
> This is what I use, its easier than remembering how size works...

Do remember, though, that simply doing this subscripting can use up a
lot of time and memory:
http://www.dfanning.com/misc_tips/submemory.html

How about this:
col = (Size(img, /Dimensions))[1]
row = (Size(img, /Dimensions))[2]

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Image structure
Next Topic: Re: Averaging quaternions

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

Current Time: Fri Oct 10 22:42:26 PDT 2025

Total time taken to generate the page: 0.55919 seconds