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

Home » Public Forums » archive » Deleting specific instances of the structure
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: Deleting specific instances of the structure [message #87352 is a reply to message #87351] Mon, 27 January 2014 14:59 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Think "redefine variable" not "delete":

badInd = WHERE(domain.frame EQ 0, count, COMPLEMENT=goodInd)

IF count NE 0 THEN domain = domain[goodInd]

You could check for good values instead. I'm also assuming frame = 0 indicates an "empty" structure, i.e., good structures have a non-zero value for frame.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: urgent-outliers removal
Next Topic: Instances of structure array with varying no. of elements

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

Current Time: Wed Oct 08 19:05:01 PDT 2025

Total time taken to generate the page: 0.00612 seconds