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

Home » Public Forums » archive » Re: Removing and Replacing Nan values in IDL
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: Removing and Replacing Nan values in IDL [message #80876 is a reply to message #80874] Thu, 19 July 2012 06:54 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
I think that the following code will work :

mask1=WHERE(FINITE(image1) EQ 0,nn1)
IF nn1 GT 0 THEN BEGIN
mask2=WHERE(FINITE(image2[mask1]) EQ 1,nn2)
IF nn2 GT 0 THEN image1[mask1[mask2]]=image2[mask1[mask2]]
ENDIF

Bernat
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Rescaling byte (0-200) ndvi to -1 to 1 values
Next Topic: IDL 8.0.1 crashes

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

Current Time: Wed Oct 08 17:43:07 PDT 2025

Total time taken to generate the page: 0.00512 seconds