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

Home » Public Forums » archive » Delete bad data and interplate the new 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: Delete bad data and interplate the new data [message #53022 is a reply to message #52950] Tue, 13 March 2007 10:26 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JD Smith writes:

> Yes, INTERPOL:
>
> data=[1,2,3,42,5,6,7]
> badval=42
> bad=where(data eq badval,nbad,COMPLEMENT=good,NCOMPLEMENT=ngood)
> if nbad gt 0 && ngood gt 1 then data[bad]=interpol(data[good],good,bad)
>
> If you want to do 2D or higher-dimension interpolation, you'll need a
> bit more magic.

Yikes! If you showed us the 2D case we would have the makings
of a nice little article here. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: randomn problem
Next Topic: Material properties for object graphics

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

Current Time: Fri Oct 10 11:48:38 PDT 2025

Total time taken to generate the page: 0.00687 seconds