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

Home » Public Forums » archive » Re: envi/idl question from a newbie
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: envi/idl question from a newbie [message #16161] Fri, 02 July 1999 00:00 Go to previous message
korpela is currently offline  korpela
Messages: 59
Registered: September 1993
Member
In article <7lg50d$m2c$1@news.nero.net>,
Mark Amend <mark.amend@hmsc.orst.edu> wrote:
> Dear IDL group-
>
> I'm using ENVI 3.1/IDL 5.1 and would like to set pixel values of 0.0 to NaN
> in order to carry out some analyses without including 0.0 values. Is there
> an easy way to do this with the Band Math function of ENVI, or is there a
> quick and dirty IDL solution?

image[where(image eq 0)]=!values.f_nan

or

image=image+!values.f_nan*(image eq 0)

?

Eric


--
Eric Korpela | An object at rest can never be
korpela@ssl.berkeley.edu | stopped.
<a href="http://sag-www.ssl.berkeley.edu/~korpela">Click for home page.</a>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Zero... THANKS Pavel and J.D.
Next Topic: Re: Explosion problem (object graphics)

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

Current Time: Wed Oct 08 17:14:54 PDT 2025

Total time taken to generate the page: 0.00426 seconds