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

Home » Public Forums » archive » Re: ENVI band math: "b1 gt b2 " , "(b1-b2) gt 0" same or not?
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 band math: "b1 gt b2 " , "(b1-b2) gt 0" same or not? [message #34741] Sat, 12 April 2003 08:25 Go to previous message
rmoss4 is currently offline  rmoss4
Messages: 21
Registered: October 2002
Junior Member
Convert your image to integer type (or floating point, depending on
exactly what you are doing to it). Yes, it will cost you storage space.
Using band math, you could use the expression

( ( fix( b1 ) - fix( b2 ) ) gt 0 )

This will produce the expected results.

Robert Moss, PhD


xinhai68 wrote:
> Thanks all. Now I understand what happened. But, could you enlighten
> me how to solve the problem? I want to use the format of "(b1 - b2) gt
> 0" because my real expression would be much complicated and I want to
> put variables on same side.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Floating point error
Next Topic: Re: IDL objected oriented question

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

Current Time: Wed Oct 08 14:52:44 PDT 2025

Total time taken to generate the page: 0.00424 seconds