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

Home » Public Forums » archive » Addressing 3D arrays different from 2D arrays?
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: Addressing 3D arrays different from 2D arrays? [message #56676 is a reply to message #56583] Wed, 07 November 2007 05:09 Go to previous messageGo to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
> subscripts is an array, with elements 0,5,4,5,6,3,4,5,6,7,4,5,6,5,
> 3,4,4,4,5,5,5,5,5,6,6,6,7 (= six different values, 0 and 3-7).
> test3d[subscripts]=1 will set elements test3d[0] and test3d[3:7]
> (= test3d[0,0,0] and test3d[3:7, 0,0]). The test3d[0,*,*] slice
> contains only one element set.
>
> regards,
> lajos

Ah, I get it. So in the original, the overlap of 4th to 8th elements
([3:7]) of both dimensions were set to 1, hence the square! Brilliant.

thanks a lot,
Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL sorting
Next Topic: !path problem

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

Current Time: Sun Oct 12 18:59:18 PDT 2025

Total time taken to generate the page: 0.79773 seconds