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

Home » Public Forums » archive » subscribing 3D 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
subscribing 3D arrays [message #17135] Thu, 16 September 1999 00:00 Go to previous message
Tom Wassenaar is currently offline  Tom Wassenaar
Messages: 15
Registered: August 1998
Junior Member
I can't figure out how to directly subscribe a group of individual cells
in one layer of a 3D array. Because of memory problems due to the array
size I do not want to create additional 2D arrays to be assigned later
on to layers of the 3D array.

To illustrate:

a = indgen(3,3)
a[[1,2],[2,1]] = 0
print, a

0 1 2
3 4 0
6 0 8

so 2 cells set to zero, but

b = indgen(3,3,3)
b[[1,2],[2,1],0] = 0
print, b[*,*,0]

0 1 2
3 0 0
6 0 0

so a square envelope of cells set to zero
Any suggestion ?

--

���������� ���������� ���������� ���������� ����
Tom Wassenaar
INRA Science du Sol, 2 place Pierre Viala
34060 Montpellier Cedex 02, tel. +33 (0)499612764
fax +33(0)467632614, M�l : wassenaar@ensam.inra.fr
���������� ���������� ���������� ���������� ����
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Filling an outline
Next Topic: Re: IDL and TCL interaction

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

Current Time: Wed Oct 08 18:11:42 PDT 2025

Total time taken to generate the page: 0.00186 seconds