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

Home » Public Forums » archive » Array indexing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Array indexing [message #31549] Tue, 16 July 2002 00:49
Andre Kyme is currently offline  Andre Kyme
Messages: 19
Registered: September 2001
Junior Member
Hi everyone,

I have a 2D image and want to index a bunch of (x,y) pairs.
X is the set of x coords and Y the set of y coords. Say I want
to set all (x,y) pairs to 200:

image[X,Y]=200

This is fine. But if image has multiple slices and I do:

image[X,Y,0]=200

all possible combinations of points in X and Y get set to 200,
whereas I only want corresponding values in X and Y set.
Is there some array notation I'm missing that enables this?

Thanks,
Andre
[Message index]
 
Read Message
Previous Topic: Adaptation of surf_track for viewing earthquakes in 3 dimensions
Next Topic: array indexing question

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

Current Time: Wed Oct 08 16:14:24 PDT 2025

Total time taken to generate the page: 0.00433 seconds