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

Home » Public Forums » archive » The continuing saga of WHERE and 2D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
The continuing saga of WHERE and 2D [message #34243] Thu, 27 February 2003 12:37 Go to previous message
Sean Raffuse is currently offline  Sean Raffuse
Messages: 46
Registered: July 2001
Member
Ok, so I've found the nifty little WhereToMulti program that converts 1D
where() results back to the original 2d or 3d indices. My question, and I
am sensing that it is a dumb one, is how can I use these returned indices
properly?

Example:

;the part that works (stolen wholesale from D Fanning's website)
index = WHERE(image EQ test)
s = SIZE(image)
ncol = s(1)
col = index MOD ncol
row = index / ncol

;the part I am confused about
image[col, row] = PassedTheTest

*** Error, too many elements in array. . . and you're ugly. ***

Thanks in advance,

Sean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Random spherical distributions
Next Topic: Import .RAW data from Siemens/BrukerAXS DiffracPlus Software?

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

Current Time: Sat Oct 11 16:12:00 PDT 2025

Total time taken to generate the page: 2.55977 seconds