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

Home » Public Forums » archive » Re: Removing a line data while reading a file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Removing a line data while reading a file [message #81404] Mon, 17 September 2012 08:21
Phillip M. Bitzer is currently offline  Phillip M. Bitzer
Messages: 7
Registered: September 2012
Junior Member
Since you use WHERE to identify the bad record, I'll assume it's
something like this:

bad_ind = WHERE(data EQ bad)

One way to go about finding the good records is by using the COMPLEMENT
keyword to WHERE:

bad_ind = WHERE(data EQ bad, COMPLEMENT=good_ind)

Then,
data = data[good_ind]

Not necessarily the best way, but gets the job done.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: how to smooth a data set with proper window
Next Topic: Reading the output of PRINT statement within a code?

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

Current Time: Wed Oct 08 15:48:00 PDT 2025

Total time taken to generate the page: 0.00566 seconds