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

Home » Public Forums » archive » Re: Image division causes Floating illegal operand
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: Image division causes Floating illegal operand [message #48747] Fri, 19 May 2006 09:11 Go to previous message
David Streutker is currently offline  David Streutker
Messages: 34
Registered: June 2005
Member
Is your mask made up of zeros and ones? If so, you are dividing by
zero in all of the masked pixels, causing the error. Because you are
already masking the numerator (partA), it's redundant to mask the
denominator (partB). Try using:

partA = (b1*coef[0,1] - b0*coef[0,0])*mask
partB = b1*coef[0,1] + b0*coef[0,0]

Alternatively, you could apply the mask to the NDVI image itself.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: plot GRIB2 data as an image
Next Topic: Histogram saga

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

Current Time: Wed Oct 08 16:14:33 PDT 2025

Total time taken to generate the page: 0.00404 seconds