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

Home » Public Forums » archive » Using where() on slices of data cubes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Using where() on slices of data cubes [message #68346] Tue, 20 October 2009 05:22 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
I feel like this should be an easy one, but I've never quite figured
it out. Let's say I got a data cube and I want to do something on
just a slice of it, say I want to turn certain values in a column into
something else:

w = where( cube[1,*,*] lt 0 )

It seems like you should be able to do something like this:

cube[1,w] = 1e24

But that doesn't work... Somehow I can't quite figure out the right
way to do this.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Creating Transparent PNG Images
Next Topic: changing window focus with cusor on x-windows

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

Current Time: Sat Oct 11 09:55:42 PDT 2025

Total time taken to generate the page: 1.60333 seconds