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

Home » Public Forums » archive » Re: IDL 4.0.1, best way to deal with missing/bad data
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: IDL 4.0.1, best way to deal with missing/bad data [message #5775 is a reply to message #5763] Mon, 12 February 1996 00:00 Go to previous messageGo to previous message
robert is currently offline  robert
Messages: 3
Registered: February 1996
Junior Member
: >The question comes as to the best way to handle missing/bad data
: >within IDL. By handle I mean don't use the data in computations, and
: >don't plot it. I can think of three ways:

: There is another way - use the IDL WHERE() function and the capability to
: subscript and array with another.

: read, data, flag
: good = where(flag eq 0)
: data = data(good)
: plot, data

Don't forget to test whether there is any good data at all! If there
isn't, then WHERE returns -1, which will break the data(good) array
subscript. Of course, for some this is not a problem, but maybe I have
worse data than others, and this caught me out at first.

Rob.
--
Robert Bunting E-mail: robert@aurora.york.ac.uk
Space Geophysics Group Tel:(+44)1904-432277
Dept of Physics, University of York, Fax:(+44)1904-432214
York YO1 5DD U.K. WWW: http://aurora.york.ac.uk/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: FAQ for IDL?
Next Topic: Selected eigenvectors of tri-diagonal matrixe

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

Current Time: Sun Oct 12 08:49:25 PDT 2025

Total time taken to generate the page: 2.07422 seconds