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

Home » Public Forums » archive » Re: do SMOOTH not on all 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: do SMOOTH not on all data [message #32691 is a reply to message #32690] Wed, 30 October 2002 08:05 Go to previous message
mchinand is currently offline  mchinand
Messages: 66
Registered: September 1996
Member
In article <3DC00163.2010308@giub.unibe.ch>,
David Oesch <oesch@giub.unibe.ch> wrote:
> Hi outthere,
>
> I just want to use SMOOTH on a 2D array. But some data are bad (-9999)
> and should not be considered in the smoothing process. Well trying to
> assign those bad data like this
> novalid=WHERE(array NE -9999)
> result=SMOOTH(array(novalid),5)
>
> DOES not work.
>
> I think the solution is using 'NaN' option, but how to I assign -9999 as
> NaN as the !VALUES.F_NAN is write protected?
>
> Cheers
>
> Dave
>

Try:

array(where(array eq -9999))= !VALUES.F_NAN

result=SMOOTH(array,5,/NAN)

--Mike
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 5.6 Where?
Next Topic: How to transfer variables between files

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

Current Time: Fri Oct 10 06:20:13 PDT 2025

Total time taken to generate the page: 0.80316 seconds