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

Home » Public Forums » archive » 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
Removing a line data while reading a file [message #81411] Mon, 17 September 2012 03:33 Go to next message
laurisilla is currently offline  laurisilla
Messages: 9
Registered: June 2012
Junior Member
Hi everyone,

My question is: how can I remove a bad record from a file while reading it. It´s a simple .dat file and all I want to do is remove erroneus line data from it. I can read the whole file without any problem and found bad data with a where function too, but then I don´t know how to tell IDL to erase it or how to make IDL not to read this record and keep on reading the rest.

I´ve created a new structure to rewrite the whole .dat file, but I want to do it without bad data records on it.

> Thank you
Re: Removing a line data while reading a file [message #81492 is a reply to message #81411] Tue, 18 September 2012 04:06 Go to previous message
laurisilla is currently offline  laurisilla
Messages: 9
Registered: June 2012
Junior Member
El lunes, 17 de septiembre de 2012 11:33:31 UTC+1, Laura escribió:
> Hi everyone,
>
>
>
> My question is: how can I remove a bad record from a file while reading it. It´s a simple .dat file and all I want to do is remove erroneus line data from it. I can read the whole file without any problem and found bad data with a where function too, but then I don´t know how to tell IDL to erase it or how to make IDL not to read this record and keep on reading the rest.
>
>
>
> I´ve created a new structure to rewrite the whole .dat file, but I want to do it without bad data records on it.
>
>
>
>> Thank you


Thanks Phillip, it worked! fast and simple
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Managing several object instances
Next Topic: Save multiple plot windows as a multiple page pdf?

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

Current Time: Wed Oct 08 09:19:06 PDT 2025

Total time taken to generate the page: 0.00551 seconds